aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-04-24 09:33:09 +0300
committerTimo Teräs <timo.teras@iki.fi>2015-04-24 09:33:09 +0300
commitc4960a1a7d5c376c24cf59b7109526226770e1b5 (patch)
tree1db8dc040be8e4f4530b83cf75513fe27feacd69
parentfd98e9c7189a18b27935f92449dea58962e6cbdd (diff)
downloadaports-c4960a1a7d5c376c24cf59b7109526226770e1b5.tar.bz2
aports-c4960a1a7d5c376c24cf59b7109526226770e1b5.tar.xz
allow virtual packages beginning with dot by default on tmpfs installs
the allows update-kernel script to work on tmpfs install before cache is configured.
-rw-r--r--src/add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/add.c b/src/add.c
index 9583ff265c..2df4dc8431 100644
--- a/src/add.c
+++ b/src/add.c
@@ -88,9 +88,6 @@ static int add_main(void *ctx, struct apk_database *db, struct apk_string_array
if (actx->virtpkg) {
apk_blob_t b = APK_BLOB_STR(actx->virtpkg);
- if (non_repository_check(db))
- return -1;
-
apk_blob_pull_dep(&b, db, &virtdep);
if (APK_BLOB_IS_NULL(b) || virtdep.conflict ||
virtdep.result_mask != APK_DEPMASK_ANY ||
@@ -99,6 +96,9 @@ static int add_main(void *ctx, struct apk_database *db, struct apk_string_array
return -1;
}
+ if (virtdep.name->name[0] != '.' && non_repository_check(db))
+ return -1;
+
virtpkg = apk_pkg_new();
if (virtpkg == NULL) {
apk_error("Failed to allocate virtual meta package");