diff options
Diffstat (limited to 'scripts/gensync')
-rwxr-xr-x | scripts/gensync | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/gensync b/scripts/gensync index 49a2939a..7c3420fd 100755 --- a/scripts/gensync +++ b/scripts/gensync @@ -100,17 +100,6 @@ db_write_entry() done echo "" >>desc fi - if [ ${#replaces[*]} -gt 0 ]; then - echo "%REPLACES%" >>desc - for it in "${replaces[@]}"; do - echo "$it" >>desc - done - echo "" >>desc - fi - if [ "$force" = "y" -o "$force" = "Y" ]; then - echo "%FORCE%" >>desc - echo "" >>desc - fi # depends : >depends if [ ${#depends[*]} -gt 0 ]; then @@ -134,6 +123,17 @@ db_write_entry() done echo "" >>depends fi + if [ ${#replaces[*]} -gt 0 ]; then + echo "%REPLACES%" >>depends + for it in "${replaces[@]}"; do + echo "$it" >>depends + done + echo "" >>depends + fi + if [ "$force" = "y" -o "$force" = "Y" ]; then + echo "%FORCE%" >>depends + echo "" >>depends + fi # preserve the modification time touch -r $1 desc depends } |