summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/db.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/db.sh b/lib/db.sh
index eb67a9a..7533126 100644
--- a/lib/db.sh
+++ b/lib/db.sh
@@ -180,6 +180,7 @@ db_add_package()
dir="${opt_base_dir}/pool/$(hash_name "${source}")/${source}/.db"
dir="${dir}/${binver}_${arch}_${plat}"
+ mkdir -p "${dir}"
printf '%s %s\n' "${sect}" "${pkg}" >>"${dir}/packages"
return 0