FS#11414 - Duplicated dependencies on the home page (package details)
Attached to Project:
Arch Linux
Opened by Nagy Gabor (combo) - Sunday, 07 September 2008, 12:29 GMT
Last edited by Dusty Phillips (Dusty) - Monday, 08 September 2008, 22:29 GMT
Opened by Nagy Gabor (combo) - Sunday, 07 September 2008, 12:29 GMT
Last edited by Dusty Phillips (Dusty) - Monday, 08 September 2008, 22:29 GMT
|
Details
If "foo" dependency of "bar" exists in more than one repos,
"foo" is listed more than once among the dependencies of
"bar".
Steps to reproduce: Atm libgl is listed twice here: http://www.archlinux.org/packages/extra/i686/xawtv/ (libgl exists in both extra and testing) See also: http://archlinux.org/pipermail/arch-general/2008-September/018542.html |
This task depends upon
Closed by Dusty Phillips (Dusty)
Monday, 08 September 2008, 22:29 GMT
Reason for closing: Fixed
Additional comments about closing: I chose to implement this in a way that only does the test and extra query when duplicates are found. I think this is marginally more optimal and more readable.
Monday, 08 September 2008, 22:29 GMT
Reason for closing: Fixed
Additional comments about closing: I chose to implement this in a way that only does the test and extra query when duplicates are found. I think this is marginally more optimal and more readable.
repo_order = [ 'Core', 'Extra', 'Testing' ]
And then only use deps from the current repo or "above"/"before" it in the list. So extra can depend on core packages, but not the other way around. It makes more sense but may be harder
Either way, thanks for the patch!
The way I see it testing is a bit different, because only in testing are packages which have the same name as a package in another repo.
If I come up with a way to do this a bit more general, while keeping the number of queries low (unless I don't hava to ;) ) I will send a new patch.