summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarcus Habernehl <bmh1980de@yahoo.de>2007-04-25 11:05:53 -0400
committerDan McGee <dan@archlinux.org>2007-04-25 11:05:53 -0400
commit339caa61ef4b52a450bf0ce785fd68c38b546be1 (patch)
tree92f2d55b24cbb94ffcb3237f6c3305c8e53a5961 /scripts
parent27f99b38540b07f1d71f6846c9375dbb4a8fb5a8 (diff)
downloadpacman-339caa61ef4b52a450bf0ce785fd68c38b546be1.tar.xz
repo-add: Fix bug where desc info was omitted if package in a group
This fixes FS #7005. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/repo-add4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/repo-add b/scripts/repo-add
index 8b81c34e..0d6f344a 100755
--- a/scripts/repo-add
+++ b/scripts/repo-add
@@ -145,7 +145,7 @@ db_write_entry()
# create desc entry
echo ":: creating 'desc' db entry"
- echo -e "%FILENAME%\n$(basename $1)\n" >> desc
+ echo -e "%FILENAME%\n$(basename $1)\n" >>desc
echo -e "%NAME%\n$pkgname\n" >>desc
echo -e "%VERSION%\n$pkgver\n" >>desc
if [ -n "$pkgdesc" ]; then
@@ -154,7 +154,7 @@ db_write_entry()
if [ -n "$_groups" ]; then
echo "%GROUPS%" >>desc
echo $_groups | tr -s ' ' '\n' >>desc
- echo "" >desc
+ echo "" >>desc
fi
[ -n $csize ] && echo -e "%CSIZE%\n$csize\n" >>desc
[ -n $size ] && echo -e "%ISIZE%\n$size\n" >>desc