Ticket #1173 (new defect)

Opened 6 years ago

Last modified 6 years ago

cave resolve could inform about fetch restriction

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

Description

Currently cave resolve <target> does not inform about expected fetch failures if either the target or one of it's dependencies has RESTRICT="fetch". Executing the resolution fails at some later time printing pkg_nofetch().

The preferable behaviour would be to test if each fetch restricted package has the distfile(s) available and if not print something like:

! Encountered the following error:
    * spec
    Fetch restricted:
        pkg_nofetch()

Probably, fetch restrictions should not change the resolution but always print an error.

Change History

comment:1 Changed 6 years ago by ciaranm

I think the old paludis client used to do a fancy pretend-fetch as part of the pretend stuff, which would also catch duff checksums up-front. Can't remember how exactly that worked.

Note: See TracTickets for help on using tickets.