summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorHolger Weiß <holger@zedat.fu-berlin.de>2011-12-02 18:09:03 +0100
committerHolger Weiß <holger@zedat.fu-berlin.de>2011-12-02 18:09:03 +0100
commitbb7cd87ff9a7b682f18d0fc52cad2e10e3326d8d (patch)
treea23412dc925ab5562dec34ee36417b5c0e7a35fa /src/lib
parentacba97ec5409045a514df785a71407246a20e23a (diff)
downloadbcfg2-bb7cd87ff9a7b682f18d0fc52cad2e10e3326d8d.tar.gz
bcfg2-bb7cd87ff9a7b682f18d0fc52cad2e10e3326d8d.tar.bz2
bcfg2-bb7cd87ff9a7b682f18d0fc52cad2e10e3326d8d.zip
Packages: Don't reverse the order of <Source>s
If a package is available in multiple repositories, the first one specified in the sources.xml file should be used for dependency resolution. In the past, the Packages code had to reverse the internal order of sources to achieve this effect; with the current code, this is no longer the case.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Packages/Collection.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lib/Server/Plugins/Packages/Collection.py b/src/lib/Server/Plugins/Packages/Collection.py
index 2d9cd8a09..f8cd8e690 100644
--- a/src/lib/Server/Plugins/Packages/Collection.py
+++ b/src/lib/Server/Plugins/Packages/Collection.py
@@ -280,9 +280,6 @@ class Collection(object):
def remove(self, item):
self.sources.remove(item)
- def reverse(self):
- self.sources.reverse()
-
def sort(self, cmp=None, key=None, reverse=False):
self.sources.sort(cmp, key, reverse)
@@ -337,8 +334,6 @@ def factory(metadata, sources, basepath):
(cclass.__name__, metadata.hostname))
collection = cclass(metadata, relevant, basepath)
- # reverse so that file order determines precedence
- collection.reverse()
collections[metadata.hostname] = collection
return collection