Skip to content
Snippets Groups Projects
Commit 03636254 authored by Kevin S. Hahn's avatar Kevin S. Hahn
Browse files

explicitly control tar archive internal paths

parent 86ece864
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ def appsinit(args):
app_tgz = args.app_tgz + '.tgz'
if not os.path.exists(app_tgz):
with tarfile.open(app_tgz, 'w:gz', compresslevel=6) as tf:
tf.add(args.app_tgz)
tf.add(args.app_tgz, arcname=os.path.basename(args.app_tgz))
util.insert_app(db, app_tgz, args.apps_path)
appsinit_desc = """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment