3
0
mirror of https://git.launchpad.net/ubuntu-dev-tools synced 2025-03-13 08:01:09 +00:00

ubuntutools/requestsync/mail.py:

Map "sid" back to "unstable" (and "squeeze" to "testing") else rmadison
  gets a Python traceback from the remote site instead of the expected data
  (lp: ).
This commit is contained in:
Michael Bienia 2010-01-17 17:59:41 +01:00
parent 8b1896be9e
commit 80ff3827c3
2 changed files with 17 additions and 0 deletions
debian
ubuntutools/requestsync

9
debian/changelog vendored

@ -1,3 +1,12 @@
ubuntu-dev-tools (0.92) UNRELEASED; urgency=low
* ubuntutools/requestsync/mail.py:
Map "sid" back to "unstable" (and "squeeze" to "testing") else rmadison
gets a Python traceback from the remote site instead of the expected data
(lp: #508794).
-- Michael Bienia <geser@ubuntu.com> Sun, 17 Jan 2010 17:53:57 +0100
ubuntu-dev-tools (0.91) lucid; urgency=low
* mk-sbuild-lv: drop deprecated keys from schroot.conf template

@ -57,6 +57,14 @@ class SourcePackagePublishingHistory(object):
return self.component
def rmadison(distro, package, release):
# Map 'sid' and 'squeeze' to their releasenames else rmadison gets a python
# traceback back from the remote script
releasenames = {
'sid': 'unstable',
'squeeze': 'testing', # Needs updating after each Debian release
}
release = releasenames.get(release, release)
rmadison_cmd = subprocess.Popen(
['rmadison', '-u', distro, '-a', 'source', '-s', release, package],
stdout = subprocess.PIPE)