[SCM] hydrogen-drumkits/master: flag to keep working directory
umlaeute at users.alioth.debian.org
umlaeute at users.alioth.debian.org
Tue Sep 19 10:16:59 UTC 2017
The following commit has been merged in the master branch:
commit b9c83e6324a1c6f98f2194c35ad9516976d02dde
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date: Tue Sep 19 11:22:24 2017 +0200
flag to keep working directory
diff --git a/debian/get-orig-source.py b/debian/get-orig-source.py
index 3fd22f8..6e55ca8 100755
--- a/debian/get-orig-source.py
+++ b/debian/get-orig-source.py
@@ -496,6 +496,8 @@ def parseCmdlineArgs():
help="don't attempt to fix known-to-be-broken URLs")
parser.add_argument('--add-all-regardless-of-license', action='store_true',
help="DO NOT USE THIS FOR CREATING A TARBALL FOR DEBIAN PACKAGING")
+ parser.add_argument('--keep-workdir', action='store_true',
+ help="keep working directory")
args = parser.parse_args()
return args
@@ -523,6 +525,8 @@ if __name__ == '__main__':
try:
main(args)
except BaseException:
- shutil.rmtree(wd)
+ if not args.keep_workdir:
+ shutil.rmtree(wd)
raise
- shutil.rmtree(wd)
+ if not args.keep_workdir:
+ shutil.rmtree(wd)
--
hydrogen-drumkits packaging
More information about the pkg-multimedia-commits
mailing list