summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-08-20 06:03:49 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-08-20 06:03:49 +0000
commit65bfbb0bf3ac92d2c5e709b8fad8bcc5a71a3e73 (patch)
tree1530947bcdb20c31b77052070d231c583a9523c8
parentdacf0eccac32280f24c046553c6be3a2b282769d (diff)
downloadpacman-65bfbb0bf3ac92d2c5e709b8fad8bcc5a71a3e73.tar.xz
changed license package field to a list
-rwxr-xr-xscripts/makepkg4
-rw-r--r--src/pacman/package.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/makepkg b/scripts/makepkg
index 4a99b845..19d4e6b2 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -631,7 +631,9 @@ echo "pkgname = $pkgname" >>.PKGINFO
echo "pkgver = $pkgver-$pkgrel" >>.PKGINFO
echo "pkgdesc = $pkgdesc" >>.PKGINFO
echo "url = $url" >>.PKGINFO
-echo "license = $license" >>.PKGINFO
+for it in "${license[@]}"; do
+ echo "license = $it" >>.PKGINFO
+done
echo "builddate = $builddate" >>.PKGINFO
echo "packager = $packager" >>.PKGINFO
echo "size = $size" >>.PKGINFO
diff --git a/src/pacman/package.c b/src/pacman/package.c
index dc3fe3e3..5c401dac 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -49,7 +49,7 @@ void dump_pkg_full(PM_PKG *pkg, int level)
printf("Packager : %s\n", (char *)alpm_pkg_getinfo(pkg, PM_PKG_PACKAGER));
printf("URL : %s\n", (char *)alpm_pkg_getinfo(pkg, PM_PKG_URL));
- printf("License : %s\n", (char *)alpm_pkg_getinfo(pkg, PM_PKG_LICENSE));
+ PM_LIST_display("License :", alpm_pkg_getinfo(pkg, PM_PKG_LICENSE));
printf("Architecture : %s\n", (char *)alpm_pkg_getinfo(pkg, PM_PKG_ARCH));
printf("Size : %ld\n", (long int)alpm_pkg_getinfo(pkg, PM_PKG_SIZE));