mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
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>
This commit is contained in:
parent
27f99b3854
commit
339caa61ef
@ -145,7 +145,7 @@ db_write_entry()
|
|||||||
|
|
||||||
# create desc entry
|
# create desc entry
|
||||||
echo ":: creating 'desc' db 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 "%NAME%\n$pkgname\n" >>desc
|
||||||
echo -e "%VERSION%\n$pkgver\n" >>desc
|
echo -e "%VERSION%\n$pkgver\n" >>desc
|
||||||
if [ -n "$pkgdesc" ]; then
|
if [ -n "$pkgdesc" ]; then
|
||||||
@ -154,7 +154,7 @@ db_write_entry()
|
|||||||
if [ -n "$_groups" ]; then
|
if [ -n "$_groups" ]; then
|
||||||
echo "%GROUPS%" >>desc
|
echo "%GROUPS%" >>desc
|
||||||
echo $_groups | tr -s ' ' '\n' >>desc
|
echo $_groups | tr -s ' ' '\n' >>desc
|
||||||
echo "" >desc
|
echo "" >>desc
|
||||||
fi
|
fi
|
||||||
[ -n $csize ] && echo -e "%CSIZE%\n$csize\n" >>desc
|
[ -n $csize ] && echo -e "%CSIZE%\n$csize\n" >>desc
|
||||||
[ -n $size ] && echo -e "%ISIZE%\n$size\n" >>desc
|
[ -n $size ] && echo -e "%ISIZE%\n$size\n" >>desc
|
||||||
|
Loading…
Reference in New Issue
Block a user