Skip to content

Commit

Permalink
Add coment explaining support of URI fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
JacekJagosz committed May 4, 2022
1 parent e02e5bc commit 8bd7057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ypkg2/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def __init__(self, uri, hash):
YpkgSource.__init__(self)
self.uri = uri
self.hash = hash
if '#' in uri:
if '#' in uri: #support URI fragments for renaming sources
self.filename = os.path.basename(uri[uri.index("#")+1:])
else:
self.filename = os.path.basename(uri)
Expand Down

0 comments on commit 8bd7057

Please sign in to comment.