summaryrefslogtreecommitdiff
path: root/scripts/updatesync
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-07 22:01:36 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-03-07 22:01:36 +0000
commit5542a50127fce35e64a9771fca83cbfb4bea46a3 (patch)
tree1c59b93c8988a1437d50418c0b63fe4d5cd32e16 /scripts/updatesync
parent78cbe41e195d0025a611d6f4c1648456aad4de9a (diff)
downloadpacman-5542a50127fce35e64a9771fca83cbfb4bea46a3.tar.xz
keep gensync and updatesync in sync
Diffstat (limited to 'scripts/updatesync')
-rwxr-xr-xscripts/updatesync30
1 files changed, 17 insertions, 13 deletions
diff --git a/scripts/updatesync b/scripts/updatesync
index 2f6866d4..fa5e860c 100755
--- a/scripts/updatesync
+++ b/scripts/updatesync
@@ -97,23 +97,27 @@ db_write_entry()
echo "%VERSION%" >>desc
echo "$pkgver-$pkgrel" >>desc
echo "" >>desc
- echo "%DESC%" >>desc
- echo "$pkgdesc" >>desc
- echo "" >>desc
- echo "%CSIZE%" >>desc
- echo "$csize" >>desc
- echo "" >>desc
- if [ ! -z $pkgmd5sum ]; then
- echo "%MD5SUM%" >>desc
- echo "$pkgmd5sum" >>desc
- echo "" >>desc
+ if [ -n "$pkgdesc" ]; then
+ echo "%DESC%" >>$entry
+ echo "$pkgdesc" >>$entry
+ echo "" >>$entry
fi
if [ ${#groups[*]} -gt 0 ]; then
- echo "%GROUPS%" >>desc
+ echo "%GROUPS%" >>$entry
for it in "${groups[@]}"; do
- echo "$it" >>desc
+ echo "$it" >>$entry
done
- echo "" >>desc
+ echo "" >>$entry
+ fi
+ if [ -n $csize ]; then
+ echo "%CSIZE%" >>$entry
+ echo "$csize" >>$entry
+ echo "" >>$entry
+ fi
+ if [ ! -z $pkgmd5sum ]; then
+ echo "%MD5SUM%" >>$entry
+ echo "$pkgmd5sum" >>$entry
+ echo "" >>$entry
fi
if [ ${#replaces[*]} -gt 0 ]; then
echo "%REPLACES%" >>desc