diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-08-06 16:39:09 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-08-06 16:39:09 +0300 |
commit | bf7b80662d75181caf1619c047078dafe80346f9 (patch) | |
tree | bbb13a031c2805a8c45fd79f079b46624812f8d5 /src/database.c | |
parent | f02f326238fd1e6424bf914e102ce265e7c156ec (diff) | |
download | apk-tools-bf7b80662d75181caf1619c047078dafe80346f9.tar.gz apk-tools-bf7b80662d75181caf1619c047078dafe80346f9.tar.bz2 apk-tools-bf7b80662d75181caf1619c047078dafe80346f9.tar.xz apk-tools-bf7b80662d75181caf1619c047078dafe80346f9.zip |
state: do not look into world in state_new
instead enforce world dependencies when the package name
is first referenced upon.
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/database.c b/src/database.c index d7bcb2d..425fb46 100644 --- a/src/database.c +++ b/src/database.c @@ -854,8 +854,6 @@ static int add_protected_path(void *ctx, apk_blob_t blob) static int apk_db_create(struct apk_database *db) { - apk_blob_t deps = APK_BLOB_STR("busybox alpine-baselayout " - "apk-tools alpine-conf"); int fd; mkdirat(db->root_fd, "tmp", 01777); @@ -868,7 +866,6 @@ static int apk_db_create(struct apk_database *db) fd = openat(db->root_fd, "var/lib/apk/world", O_CREAT|O_RDWR|O_TRUNC, 0644); if (fd < 0) return -errno; - write(fd, deps.ptr, deps.len); close(fd); return 0; |