diff options
author | pjmattal <pjmattal> | 2004-12-15 03:51:55 +0000 |
---|---|---|
committer | pjmattal <pjmattal> | 2004-12-15 03:51:55 +0000 |
commit | a3e04c512477325382d6593fc453699de5392f8e (patch) | |
tree | 8b875a92361e37560b1c0f18d7efc654efa37908 /tupkg/update | |
parent | da8293db8998be37fe13d0c9229b7aab1c1b4e6f (diff) | |
download | aurweb-a3e04c512477325382d6593fc453699de5392f8e.tar.xz |
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-x | tupkg/update/tupkgupdate | 8 |
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) |