summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-27 17:42:11 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-27 17:42:11 (EDT)
commit66e122128bd7d54e59a9992613769a68c4469d5a (patch)
treecb3695601519f92dc48ead24cef28bab7ce95a1b
parent4bf7c2ecfb31ea65b25809003ae2cf2790f7b83d (diff)
db_add_package(): Make directory.
-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