Make sure source packages are specified with src:

This commit is contained in:
Stefano Rivera 2011-11-11 23:21:42 +02:00
parent d0149b00d7
commit 3d2127478d

View File

@ -22,5 +22,7 @@ def query_rdepends(package, release, arch,
"""Look up a packages reverse-dependencies on the Ubuntuwire
Reverse- webservice
"""
if arch == 'source' and not package.startswith('src:'):
package = 'src:' + package
url = os.path.join(server, 'v1', release, arch, package)
return json.load(urllib2.urlopen(url))