diff options
| author | Sebastian Heinlein <sebi@sebi-laptop> | 2006-11-26 23:19:52 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@sebi-laptop> | 2006-11-26 23:19:52 +0100 |
| commit | 48c981db5adea85ed38acf7fca0e63f5ae5b1b97 (patch) | |
| tree | 74d0ec88c3f3c5bd547f98c742cf98fd56f57cd8 | |
| parent | a0b20edc60045084773853daa5fabf3ff9260403 (diff) | |
| download | python-apt-48c981db5adea85ed38acf7fca0e63f5ae5b1b97.tar.gz | |
* fix the mirrors of child sources
* fix the test output of DistUtils
| -rw-r--r-- | AptSources/DistInfo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AptSources/DistInfo.py b/AptSources/DistInfo.py index 2dbd9a1b..41edd75c 100644 --- a/AptSources/DistInfo.py +++ b/AptSources/DistInfo.py @@ -102,7 +102,7 @@ class DistInfo: # reuse some properties of the parent suite if suite.match_uri == None: suite.match_uri = nanny.match_uri - if suite.valid_mirrors == None: + if suite.valid_mirrors == []: suite.valid_mirrors = nanny.valid_mirrors if suite.base_uri == None: suite.base_uri = nanny.base_uri @@ -148,7 +148,7 @@ class DistInfo: if __name__ == "__main__": - d = DistInfo ("Ubuntu", "../../data/templates") + d = DistInfo ("Ubuntu", "/usr/share/python-aptsources/templates") print d.changelogs_uri for suite in d.suites: print "\nSuite: %s" % suite.name @@ -157,7 +157,7 @@ if __name__ == "__main__": print "MatchURI: %s" % suite.match_uri print "Mirrors: %s" % suite.valid_mirrors for component in suite.components: - print " %s - %s - %s - %s" % (component, + print " %s - %s - %s" % (component, suite.components[component][0], suite.components[component][1]) for child in suite.children: |
