From 5542a50127fce35e64a9771fca83cbfb4bea46a3 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 7 Mar 2006 22:01:36 +0000 Subject: keep gensync and updatesync in sync --- scripts/updatesync | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3-24-g4f1b