summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2012-02-15 00:31:04 (GMT)
committerLuke Macken <lmacken@redhat.com>2012-02-15 00:31:04 (GMT)
commitb88cb6bbf7e6b12dde39647a75c32b99f4aef1bc (patch)
tree97b7f843be92bec2913287a23951495fe50d62c2
parentdbfcf386c629906a395dc21a0fe4466044266693 (diff)
downloadbodhi-b88cb6bbf7e6b12dde39647a75c32b99f4aef1bc.zip
bodhi-b88cb6bbf7e6b12dde39647a75c32b99f4aef1bc.tar.gz
bodhi-b88cb6bbf7e6b12dde39647a75c32b99f4aef1bc.tar.xz
Convert our tags_url to a byte string before passing it to urlgrabber.
This is a workaround until a new urlgrabber gets released with my patch: http://lists.baseurl.org/pipermail/yum-commits/2011-March/004329.html
-rw-r--r--bodhi/metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bodhi/metadata.py b/bodhi/metadata.py
index 43dec3e..3bc392e 100644
--- a/bodhi/metadata.py
+++ b/bodhi/metadata.py
@@ -308,7 +308,7 @@ class ExtendedMetadata(object):
tags_url = config.get('pkgtags_url') + filename
log.info('Downloading %s' % tags_url)
try:
- urlgrab(tags_url, filename='/tmp/pkgtags.sqlite')
+ urlgrab(str(tags_url), filename='/tmp/pkgtags.sqlite')
repomd = RepoMetadata(join(self.repo, arch, 'repodata'))
repomd.add('/tmp/pkgtags.sqlite')
except URLGrabError, e: