summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-08-20 07:54:45 +0200
committerAurelien Foret <aurelien@archlinux.org>2005-08-20 07:54:45 +0200
commitdacf0eccac32280f24c046553c6be3a2b282769d (patch)
tree2272b3d3e74551f099a822e2482d0d1a79de8ba1 /lib/libalpm/package.c
parenta2192570fb187f4be900b24a880a85fd4dd125db (diff)
downloadpacman-dacf0eccac32280f24c046553c6be3a2b282769d.tar.gz
pacman-dacf0eccac32280f24c046553c6be3a2b282769d.tar.xz
changed license package field to a list
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index db6a8732..bf64a481 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -45,7 +45,7 @@ pmpkg_t *pkg_new()
pkg->version[0] = '\0';
pkg->desc[0] = '\0';
pkg->url[0] = '\0';
- pkg->license[0] = '\0';
+ pkg->license = NULL;
pkg->builddate[0] = '\0';
pkg->installdate[0] = '\0';
pkg->packager[0] = '\0';
@@ -180,7 +180,7 @@ static int parse_descfile(char *descfile, pmpkg_t *info, int output)
} else if(!strcmp(key, "URL")) {
STRNCPY(info->url, ptr, sizeof(info->url));
} else if(!strcmp(key, "LICENSE")) {
- STRNCPY(info->license, ptr, sizeof(info->license));
+ info->license = pm_list_add(info->license, strdup(ptr));
} else if(!strcmp(key, "BUILDDATE")) {
STRNCPY(info->builddate, ptr, sizeof(info->builddate));
} else if(!strcmp(key, "INSTALLDATE")) {