From 617e7d512ff6fb7d6c5e5232091b528148cc40c7 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 1 Jul 2009 13:52:52 +1000 Subject: makepkg: clean up moving PKGINFO creation to a function Someone forgot to commit this when pulling in the original patch to his working branch... Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index d52398c0..34e156ae 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -881,14 +881,13 @@ write_pkginfo() { fi local size=$(du -sk | awk '{print $1 * 1024}') - # write the .PKGINFO file msg2 "$(gettext "Generating .PKGINFO file...")" echo "# Generated by makepkg $myver" >.PKGINFO if [ "$INFAKEROOT" -eq 1 ]; then echo "# using $(fakeroot -v)" >>.PKGINFO fi echo "# $(LC_ALL=C date -u)" >>.PKGINFO - echo "pkgname = $nameofpkg" >>.PKGINFO + echo "pkgname = $1" >>.PKGINFO echo "pkgver = $pkgver-$pkgrel" >>.PKGINFO echo "pkgdesc = $pkgdesc" >>.PKGINFO echo "url = $url" >>.PKGINFO -- cgit v1.2.3-70-g09d2