Skip to content

Commit

Permalink
Allow for renaming of simple source files
Browse files Browse the repository at this point in the history
Made to go with solbuild commit
  • Loading branch information
JacekJagosz committed May 3, 2022
1 parent 0f82f54 commit e02e5bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ypkg2/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,11 @@ class TarSource(YpkgSource):
def __init__(self, uri, hash):
YpkgSource.__init__(self)
self.uri = uri
self.filename = os.path.basename(uri)
self.hash = hash
if '#' in uri:
self.filename = os.path.basename(uri[uri.index("#")+1:])
else:
self.filename = os.path.basename(uri)

def __str__(self):
return "%s (%s)" % (self.uri, self.hash)
Expand Down

0 comments on commit e02e5bc

Please sign in to comment.