diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-12-21 14:14:02 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-12-21 14:14:02 +0200 |
commit | d0909569c639a033a6f1c47a95745886ebe3e093 (patch) | |
tree | 50443055a3c56324d7c43098d19a4a960cad6c30 /src/package.c | |
parent | 366e7d07ae20d18cfc5f9f12588a0371654f956a (diff) | |
download | apk-tools-d0909569c639a033a6f1c47a95745886ebe3e093.tar.gz apk-tools-d0909569c639a033a6f1c47a95745886ebe3e093.tar.bz2 apk-tools-d0909569c639a033a6f1c47a95745886ebe3e093.tar.xz apk-tools-d0909569c639a033a6f1c47a95745886ebe3e093.zip |
apk: --overlay-from-stdin
get list of overlay files from stdin, so those do not get overwritten.
Diffstat (limited to 'src/package.c')
-rw-r--r-- | src/package.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/package.c b/src/package.c index ee3f40e..b265468 100644 --- a/src/package.c +++ b/src/package.c @@ -66,8 +66,13 @@ struct apk_installed_package *apk_pkg_install(struct apk_database *db, pkg->ipkg = ipkg = calloc(1, sizeof(struct apk_installed_package)); ipkg->pkg = pkg; - db->installed.stats.packages++; - list_add_tail(&ipkg->installed_pkgs_list, &db->installed.packages); + + /* Overlay override information resides in a nameless package */ + if (pkg->name != NULL) { + db->installed.stats.packages++; + list_add_tail(&ipkg->installed_pkgs_list, + &db->installed.packages); + } return ipkg; } |