requestsync: request syncs from 'testing' by default

(should be changed back to 'unstable' for lucid+1)
This commit is contained in:
Michael Bienia 2009-11-02 19:03:18 +01:00
parent 09cd08b58f
commit 87660fb375
3 changed files with 12 additions and 5 deletions

6
debian/changelog vendored
View File

@ -26,7 +26,11 @@ ubuntu-dev-tools (0.82) UNRELEASED; urgency=low
* debian/control: re-enable support for python2.5.
* debian/copyright: update copyright holders.
-- Luca Falavigna <dktrkranz@debian.org> Sun, 01 Nov 2009 15:58:08 +0100
[ Michael Bienia ]
* requestsync: request syncs from 'testing' by default (should be changed
back to 'unstable' for lucid+1)
-- Michael Bienia <geser@ubuntu.com> Mon, 02 Nov 2009 19:01:19 +0100
ubuntu-dev-tools (0.81) karmic; urgency=low

View File

@ -47,7 +47,7 @@ if __name__ == '__main__':
optParser = OptionParser(usage)
optParser.add_option('-d', type = 'string',
dest = 'dist', default = 'unstable',
dest = 'dist', default = 'testing',
help = 'Debian distribution to sync from.')
optParser.add_option('-k', type = 'string',
dest = 'keyid', default = None,

View File

@ -29,9 +29,12 @@ def getDebianSrcPkg(name, release):
debian = Distribution('debian')
debian_archive = debian.getArchive()
# Map 'unstable' to 'sid' as LP doesn't know 'unstable' but only 'sid'
if release == 'unstable':
release = 'sid'
# Map 'unstable' and 'testing' to their codenames as LP knows only them
codenames = {
'unstable': 'sid',
'testing': 'squeeze', # Needs updating after each Debian release
}
release = codenames.get(release, release)
return debian_archive.getSourcePackage(name, release)