summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-05 11:09:39 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-05 11:09:39 +0000
commit7ee79434d29cb35db8a8c3e69f107a935538f919 (patch)
tree90badafeca1f96a3307320fc59e4cfd80649b29f
parent021fc72c1451ea25e21aef457ad90e0c7b0b3560 (diff)
Honour -k for package command.
-rwxr-xr-xcdist3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdist b/cdist
index be7306a..8143e08 100755
--- a/cdist
+++ b/cdist
@@ -627,7 +627,8 @@ elif args.command == 'package':
for p in packages:
copyfile(p, '%s/%s' % (args.output, os.path.basename(p)))
- target.cleanup()
+ if not args.keep:
+ target.cleanup()
elif args.command == 'release':
if args.minor is False and args.micro is False: