summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-07-22 03:59:11 +0200
committerJudd Vinet <judd@archlinux.org>2005-07-22 03:59:11 +0200
commita2192570fb187f4be900b24a880a85fd4dd125db (patch)
tree717a03b8fa84463fbbce7fc203ba803395756afc /lib/libalpm/package.c
parentda79a410543205cbcf25cd2d1355cc3f8faab3f2 (diff)
downloadpacman-a2192570fb187f4be900b24a880a85fd4dd125db.tar.gz
pacman-a2192570fb187f4be900b24a880a85fd4dd125db.tar.xz
changed license package field to a list
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index f5a3c33a..db6a8732 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -84,7 +84,6 @@ pmpkg_t *pkg_dup(pmpkg_t *pkg)
STRNCPY(newpkg->version, pkg->version, PKG_VERSION_LEN);
STRNCPY(newpkg->desc, pkg->desc, PKG_DESC_LEN);
STRNCPY(newpkg->url, pkg->url, PKG_URL_LEN);
- STRNCPY(newpkg->license, pkg->license, PKG_LICENSE_LEN);
STRNCPY(newpkg->builddate, pkg->builddate, PKG_DATE_LEN);
STRNCPY(newpkg->installdate, pkg->installdate, PKG_DATE_LEN);
STRNCPY(newpkg->packager, pkg->packager, PKG_PACKAGER_LEN);
@@ -94,6 +93,7 @@ pmpkg_t *pkg_dup(pmpkg_t *pkg)
newpkg->force = pkg->force;
newpkg->scriptlet = pkg->scriptlet;
newpkg->reason = pkg->reason;
+ newpkg->license = _alpm_list_strdup(pkg->license);
newpkg->requiredby = _alpm_list_strdup(pkg->requiredby);
newpkg->conflicts = _alpm_list_strdup(pkg->conflicts);
newpkg->files = _alpm_list_strdup(pkg->files);