summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-05-02 23:41:39 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-05-02 23:41:39 -0400
commit90ce65c0d0c0315a3213762cee052108fbee937d (patch)
treea50c58fe5270042a1d6f73c1b2cf13e04e512c0f
parent67581008b9e2c32cfead4377f965fdc884c1f41d (diff)
db-import-pkg: Call db-functions:set_repo_permission after copying DB into placeparabola/20180502.1
I'm nervous about loading db-functions in to the global scope (at least for a hotfix), so I'm doing that in a subshell. I'm probably just being overly-cautious though.
-rwxr-xr-xdb-import-pkg6
1 files changed, 6 insertions, 0 deletions
diff --git a/db-import-pkg b/db-import-pkg
index b4f3187..be41d76 100755
--- a/db-import-pkg
+++ b/db-import-pkg
@@ -202,6 +202,12 @@ make_repo_dbs() {
--delay-updates \
--safe-links \
"$from" "$into"
+ (
+ # I'm nervous about loading db-functions in the global
+ # scope.
+ . "$(dirname "$(readlink -e "$0")")/db-functions"
+ set_repo_permission "$1" "$2"
+ )
}
# Main function. Process the databases and get the libre packages