Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/updatesync
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-10-20 20:46:35 +0000
committerJudd Vinet <judd@archlinux.org>2005-10-20 20:46:35 +0000
commit6851ce24abf07ac8bfe1406944351608ab0cfb1b (patch)
tree372ddef9e88e91e13b5a24fdc8ce469102537b79 /scripts/updatesync
parente37bc739bd704d5d0ac22d28d9f5a9334c61707e (diff)
copied up-to-date scripts from pacman 2.9.7
Diffstat (limited to 'scripts/updatesync')
-rwxr-xr-xscripts/updatesync26
1 files changed, 13 insertions, 13 deletions
diff --git a/scripts/updatesync b/scripts/updatesync
index 10614d5b..5385ed66 100755
--- a/scripts/updatesync
+++ b/scripts/updatesync
@@ -3,7 +3,7 @@
# updatesync
#
# Copyright (c) 2004 by Jason Chu <jason@archlinux.org>
-# Derived from gensync (c) 2002-2004 Judd Vinet <jvinet@zeroflux.org>
+# Derived from gensync (c) 2002-2005 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
@@ -21,7 +21,7 @@
# USA.
#
-myver='2.9.2'
+myver='2.9.7'
usage() {
echo "updatesync $myver"
@@ -103,6 +103,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
@@ -126,17 +137,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
}
delete_entry()