index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Judd Vinet <judd@archlinux.org> | 2005-10-20 20:46:35 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-10-20 20:46:35 +0000 |
commit | 6851ce24abf07ac8bfe1406944351608ab0cfb1b (patch) | |
tree | 372ddef9e88e91e13b5a24fdc8ce469102537b79 /scripts/gensync | |
parent | e37bc739bd704d5d0ac22d28d9f5a9334c61707e (diff) |
-rwxr-xr-x | scripts/gensync | 26 |
diff --git a/scripts/gensync b/scripts/gensync index 7c3420fd..3cfcbcaa 100755 --- a/scripts/gensync +++ b/scripts/gensync @@ -2,7 +2,7 @@ # # gensync # -# Copyright (c) 2002-2004 by Judd Vinet <jvinet@zeroflux.org> +# Copyright (c) 2002-2005 by Judd Vinet <jvinet@zeroflux.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ # USA. # -myver='2.9.2' +myver='2.9.7' usage() { echo "gensync $myver" @@ -100,6 +100,17 @@ 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 @@ -123,17 +134,6 @@ 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 } |