diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-05-30 08:46:30 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-05-30 08:48:32 +0300 |
commit | aec93ee730f7a2e0196ae05fdd45e866d2510e41 (patch) | |
tree | b51fdb4924941ea15eea0356fa6e69a7afc91e14 /src/add.c | |
parent | 035da870362494bcb4ed092e27278c290b204410 (diff) | |
download | apk-tools-aec93ee730f7a2e0196ae05fdd45e866d2510e41.tar.gz apk-tools-aec93ee730f7a2e0196ae05fdd45e866d2510e41.tar.bz2 apk-tools-aec93ee730f7a2e0196ae05fdd45e866d2510e41.tar.xz apk-tools-aec93ee730f7a2e0196ae05fdd45e866d2510e41.zip |
db: unify handling of special packages
make cache a special kind of repository, and automatically cache
special packages (virtual packages, or ones installed from command
line). add test cases for handling virtual packages. fixes #1617.
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -93,7 +93,6 @@ static int add_main(void *ctx, struct apk_database *db, int argc, char **argv) virtpkg->version = apk_blob_atomize(APK_BLOB_STR("0")); virtpkg->description = strdup("virtual meta package"); virtpkg->arch = apk_blob_atomize(APK_BLOB_STR("noarch")); - virtpkg->repos |= db->repo_tags[virtdep.repository_tag].allowed_repos; virtpkg = apk_db_pkg_add(db, virtpkg); } |