summaryrefslogtreecommitdiff
path: root/tupkg/update
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2004-12-15 03:51:55 +0000
committerpjmattal <pjmattal>2004-12-15 03:51:55 +0000
commita3e04c512477325382d6593fc453699de5392f8e (patch)
tree8b875a92361e37560b1c0f18d7efc654efa37908 /tupkg/update
parentda8293db8998be37fe13d0c9229b7aab1c1b4e6f (diff)
kept it from running gensync when no changes were made
made --delete actually delete files that are copied
Diffstat (limited to 'tupkg/update')
-rwxr-xr-xtupkg/update/tupkgupdate8
1 files changed, 7 insertions, 1 deletions
diff --git a/tupkg/update/tupkgupdate b/tupkg/update/tupkgupdate
index 97b269c..7020d88 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)