WIP: keyring init
This commit is contained in:
parent
0c56038ed6
commit
e068b3587e
4 changed files with 57 additions and 14 deletions
|
@ -72,6 +72,7 @@ class LocalPackage(BinaryPackage):
|
|||
assert self.resolved_url and self.filename and self.filename in self.resolved_url
|
||||
path = f'{self.resolved_url.split("file://")[1]}'
|
||||
if dest_dir:
|
||||
makedir(dest_dir)
|
||||
target = os.path.join(dest_dir, filename or self.filename)
|
||||
if os.path.getsize(path) != os.path.getsize(target) or sha256sum(path) != sha256sum(target):
|
||||
copy_file(path, target, follow_symlinks=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue