Compare commits
No commits in common. "master" and "v0.9.0" have entirely different histories.
1 changed files with 4 additions and 5 deletions
9
btv
9
btv
|
@ -199,9 +199,9 @@ def serialize(snap, outdir, key, snap_from=None):
|
||||||
## prepare directories
|
## prepare directories
|
||||||
##
|
##
|
||||||
if snap_from:
|
if snap_from:
|
||||||
name = "%s to %s" %(snap_from.name, snap.name)
|
name = "%s diff from %s" %(snap.name, snap_from.name)
|
||||||
else:
|
else:
|
||||||
name = snap.name
|
name = "%s full" %(snap.name)
|
||||||
|
|
||||||
directory = os.path.join(outdir, name)
|
directory = os.path.join(outdir, name)
|
||||||
os.makedirs(directory)
|
os.makedirs(directory)
|
||||||
|
@ -252,9 +252,8 @@ def serialize(snap, outdir, key, snap_from=None):
|
||||||
f.write("#! /bin/sh\n\nsha512sum --check manifest.sha512\n")
|
f.write("#! /bin/sh\n\nsha512sum --check manifest.sha512\n")
|
||||||
os.chmod(f.name, 0o500)
|
os.chmod(f.name, 0o500)
|
||||||
|
|
||||||
unpack_path = os.path.join(directory, "unpack.sh")
|
shutil.copy("/usr/share/btv/unpack.sh", "unpack.sh")
|
||||||
shutil.copy("/usr/share/btv/unpack.sh", unpack_path)
|
os.chmod("unpack.sh", 0o500)
|
||||||
os.chmod(unpack_path, 0o500)
|
|
||||||
|
|
||||||
## fix permissions and ownership of created objects
|
## fix permissions and ownership of created objects
|
||||||
outdir_stat = os.stat(outdir)
|
outdir_stat = os.stat(outdir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue