summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-08-11 17:56:24 +0300
committerTimo Teras <timo.teras@iki.fi>2009-08-11 17:56:24 +0300
commit5d19789a3b29d70ebfdbe18ac9c363390ff9eda9 (patch)
tree30222b5f1c8f3d9c6a1b1f36f901b12c8fd824c1 /src/database.c
parent1011c4e3462ec1694af75d3a4d54730c7aa1e142 (diff)
downloadapk-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.c2
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)