diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2018-04-25 01:07:37 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2018-04-29 14:19:16 -0400 |
commit | bd49e1cc3f5e47de739a5864aabad987ba28614c (patch) | |
tree | 796033781bc02f37d24450a9560234f20872bc4b | |
parent | 66b7a1018849a3116f44593d379e652443a0ffcd (diff) |
db-import-pkg: Set `umask 002` when working on .db files, same as db-functions
-rwxr-xr-x | db-import-pkg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/db-import-pkg b/db-import-pkg index ec4f88d..d319b1f 100755 --- a/db-import-pkg +++ b/db-import-pkg @@ -185,6 +185,8 @@ make_repo_dbs() { msg2 "Adding whitelisted packages to clean %s and %s ..." \ "${db_file##*/}" "${files_file##*/}" rm "$db_file" "$files_file" + local UMASK=$(umask) + umask 002 case "$UPSTREAM" in packages|community) LC_ALL=C repo-add "$db_file" \ @@ -196,6 +198,7 @@ make_repo_dbs() { sed -n 's/==> Adding/ -> Adding/p' ;; esac + umask "$UMASK" >/dev/null msg2 "Updating %s-%s databases" "$2" "$1" mkdir -p -- "$into" |