diff options
Diffstat (limited to 'db-functions')
-rw-r--r-- | db-functions | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db-functions b/db-functions index 11ab422..8c8c667 100644 --- a/db-functions +++ b/db-functions @@ -19,6 +19,16 @@ source_makepkg () { fi } +UMASK="" +set_umask () { + UMASK="$(umask)" + umask 002 +} + +restore_umask () { + umask $UMASK +} + repo_lock () { #repo_lock repo-name arch LOCKFILE="$TMPDIR/.repolock.$1.$2" if [ -f "$LOCKFILE" ]; then |