summaryrefslogtreecommitdiff
path: root/scripts/gensync
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-26 20:49:18 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-26 20:49:18 +0000
commit6d436b960334306ef3aebedc158b9bb8f6b07945 (patch)
tree0348bf370e03e32404f8827cdb1d64effe42a015 /scripts/gensync
parentfb2331ab8b62cb4737c5e31c4bee766c270b92f7 (diff)
downloadpacman-6d436b960334306ef3aebedc158b9bb8f6b07945.tar.xz
reordered group entry position in db_write (to be in line with alpm/db_write)
Diffstat (limited to 'scripts/gensync')
-rwxr-xr-xscripts/gensync14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/gensync b/scripts/gensync
index 505ead56..e51d3069 100755
--- a/scripts/gensync
+++ b/scripts/gensync
@@ -97,6 +97,13 @@ db_write_entry()
echo "%DESC%" >>desc
echo "$pkgdesc" >>desc
echo "" >>desc
+ if [ ${#groups[*]} -gt 0 ]; then
+ echo "%GROUPS%" >>desc
+ for it in "${groups[@]}"; do
+ echo "$it" >>desc
+ done
+ echo "" >>desc
+ fi
echo "%CSIZE%" >>desc
echo "$csize" >>desc
echo "" >>desc
@@ -105,13 +112,6 @@ db_write_entry()
echo "$pkgmd5sum" >>desc
echo "" >>desc
fi
- if [ ${#groups[*]} -gt 0 ]; then
- echo "%GROUPS%" >>desc
- for it in "${groups[@]}"; do
- echo "$it" >>desc
- done
- echo "" >>desc
- fi
if [ ${#replaces[*]} -gt 0 ]; then
echo "%REPLACES%" >>desc
for it in "${replaces[@]}"; do