mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
kept it from running gensync when no changes were made
made --delete actually delete files that are copied
This commit is contained in:
parent
da8293db89
commit
a3e04c5124
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue