diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-08-11 17:56:24 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-08-11 17:56:24 +0300 |
commit | 5d19789a3b29d70ebfdbe18ac9c363390ff9eda9 (patch) | |
tree | 30222b5f1c8f3d9c6a1b1f36f901b12c8fd824c1 /src/database.c | |
parent | 1011c4e3462ec1694af75d3a4d54730c7aa1e142 (diff) | |
download | apk-tools-5d19789a3b29d70ebfdbe18ac9c363390ff9eda9.tar.gz apk-tools-5d19789a3b29d70ebfdbe18ac9c363390ff9eda9.tar.bz2 apk-tools-5d19789a3b29d70ebfdbe18ac9c363390ff9eda9.tar.xz apk-tools-5d19789a3b29d70ebfdbe18ac9c363390ff9eda9.zip |
pkg, db: execute scripts from /var/cache/misc (fixes #129)
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c index a6669c3..e66cbf8 100644 --- a/src/database.c +++ b/src/database.c @@ -862,6 +862,8 @@ static int apk_db_create(struct apk_database *db) mkdirat(db->root_fd, "var", 0755); mkdirat(db->root_fd, "var/lib", 0755); mkdirat(db->root_fd, "var/lib/apk", 0755); + mkdirat(db->root_fd, "var/cache", 0755); + mkdirat(db->root_fd, "var/cache/misc", 0755); fd = openat(db->root_fd, "var/lib/apk/world", O_CREAT|O_RDWR|O_TRUNC, 0644); if (fd < 0) |