mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
lpapicache: use urlparse instead of manual parsing
This commit is contained in:
parent
d98e16226b
commit
ee98423715
@ -824,7 +824,7 @@ class SourcePackagePublishingHistory(BaseWrapper):
|
||||
urls = self.binaryFileUrls()
|
||||
for url in urls:
|
||||
# strip out the URL leading text.
|
||||
filename = url.rsplit('/', 1)[1]
|
||||
filename = os.path.basename(urlparse(url).path)
|
||||
# strip the file suffix
|
||||
(pkgname, _, e) = filename.rpartition('.')
|
||||
# split into name, version, arch
|
||||
|
Loading…
x
Reference in New Issue
Block a user