Ticket #1077 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

cave uninstall -r / resume adds removed packages to world

Reported by: dleverton Owned by:
Priority: Sometime Milestone:
Component: clients/cave Version: scm
Keywords: Cc:
Blocked By: Blocking:
Distribution: Gentoo

Description

shiny-one ~ # cat /var/paludis/repositories/local-testing/app-misc/dummy/dummy-1.ebuild 
SLOT="0"
KEYWORDS="amd64"
shiny-one ~ # cat /var/paludis/repositories/local-testing/app-misc/dummy2/dummy2-2.ebuild 
SLOT="0"
KEYWORDS="amd64"
DEPEND="app-misc/dummy"
RDEPEND="${DEPEND}"
shiny-one ~ # cave resolve -1xz dummy2
Done: 13 steps              

These are the actions I will take, in order:

n   app-misc/dummy:0::local-testing 1 to ::installed
    build_options: optional_tests -split strip -trace -preserve_work
    Reasons: app-misc/dummy2
n   app-misc/dummy2:0::local-testing 2 to ::installed
    build_options: optional_tests -split strip -trace -preserve_work
    Reasons: target

Total: 2 new installs

[snip]

shiny-one ~ # cave uninstall -r \*/* dummy --resume-file ~/cave-resume
Done: 3622 steps               

These are the actions I will take, in order:

<   app-misc/dummy2 2:0::installed
    Reasons: dependent upon app-misc/dummy-1:0::installed
<   app-misc/dummy 1:0::installed
    Reasons: target

Total: 2 uninstalls


Writing resume information to /root/cave-resume...

 * No unread news items found
shiny-one ~ # cave resume --resume-file ~/cave-resume
[snip]

Updating world

* Nothing to remove for 'app-misc/dummy'
* Added 'app-misc/dummy2'

Erasing resume file /root/cave-resume...

 * No unread news items found

 * Searching for configuration files requiring action...
 * No configuration file updates required

Note, this doesn't happen when using cave uninstall -x, only when using resume.

Attachments

cave-resume Download (671 bytes) - added by dleverton 8 years ago.

Change History

comment:1 Changed 8 years ago by ciaranm

Can you paste a resume file where this happens please?

Changed 8 years ago by dleverton

comment:2 Changed 8 years ago by dleverton

Attached (/me kicks Trac for not sending bugmail)

comment:3 Changed 8 years ago by ciaranm

world_specs=c(1="!app-misc/dummy";2="app-misc/dummy2";count="2";)

comment:4 Changed 8 years ago by ciaranm

Think this is it:

            std::copy(cmdline.a_removed_if_dependent_names.begin_args(), cmdline.a_removed_if_dependent_names.end_args(), world_specs->back_inserter());

comment:5 Changed 8 years ago by ciaranm

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.