summaryrefslogtreecommitdiffstats
path: root/tupkg/update/tupkgupdate
diff options
context:
space:
mode:
Diffstat (limited to 'tupkg/update/tupkgupdate')
-rwxr-xr-xtupkg/update/tupkgupdate8
1 files changed, 7 insertions, 1 deletions
diff --git a/tupkg/update/tupkgupdate b/tupkg/update/tupkgupdate
index 97b269c6..7020d88a 100755
--- a/tupkg/update/tupkgupdate
+++ b/tupkg/update/tupkgupdate
@@ -287,5 +287,11 @@ for file in copy:
# Delete (second, for safety's sake)
for file in delete:
deleteFile(file)
+# Now that we've copied new files and deleted, we should delete the source
+# files, if we're supposed to
+if (switches.get("--delete") == True):
+ for file in copy:
+ deleteFile(file)
# Run gensync to build the repo index
-runGensync(repo_dir, pkgbuild_dir)
+if (len(copy) + len(delete) > 0):
+ runGensync(repo_dir, pkgbuild_dir)