Ticket #1149 (closed defect: fixed)

Opened 8 years ago

Last modified 7 years ago

--continue-on-failure if-independent performs purge even if operation that makes the package not required failed

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

Description

shiny-one local-testing # cat app-misc/dummy/dummy-1.ebuild 
SLOT="1"
KEYWORDS="amd64"
shiny-one local-testing # cat app-misc/dummy/dummy-2.ebuild 
SLOT="2"
KEYWORDS="amd64"
DEPEND="=app-misc/dummy-1"
RDEPEND="${DEPEND}"
shiny-one local-testing # cat app-misc/dummy/dummy-2.1.ebuild 
SLOT="2"
KEYWORDS="amd64"

pkg_setup() {
        die "oh no"
}
shiny-one local-testing # cave resolve -x =dummy-2
Done: 13 steps, 3 metadata (3 local-testing)               

These are the actions I will take, in order:

n   app-misc/dummy:1::local-testing 1 to ::installed
    build_options: optional_tests symbols=strip -trace -preserve_work
    Reasons: app-misc/dummy
-n  app-misc/dummy:2::local-testing (not the best version) 2 to ::installed
    build_options: optional_tests symbols=strip -trace -preserve_work
    Reasons: target

Total: 2 new installs

[snip]

shiny-one local-testing # cave resolve -x =dummy-2.1 --purge dummy:1 --continue-on-failure if-independent
Done: 5513 steps               

These are the actions I will take, in order:

u   app-misc/dummy:2::local-testing 2.1 to ::installed replacing 2
    build_options: optional_tests symbols=strip -trace -preserve_work
    Reasons: target
<   app-misc/dummy 1:1::installed
    Reasons: was used by app-misc/dummy-2:2::installed

Total: 1 upgrades, 1 uninstalls

[snip]

Summary:

failed:    install app-misc/dummy-2.1:2::local-testing to ::installed replacing 2
*** Output log: /var/log/paludis/1302292326-install-app-misc_dummy-2.1:2::local-testing.out
succeeded: uninstall app-misc/dummy-1:1::installed

 * No unread news items found

 * Searching for configuration files requiring action...
 * No configuration file updates required
shiny-one local-testing # 

Change History

comment:1 Changed 7 years ago by ciaranm

Hrm. If you use if-satisfied rather than if-independent, does it get it right?

comment:2 Changed 7 years ago by ciaranm

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