Commit 851052f5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: set umask 022 before repack

parent 7de669a8
......@@ -34,6 +34,8 @@ __epm_repack_to_deb()
TDIR="$(mktemp -d --tmpdir=$BIGTMPDIR)" || fatal
remove_on_exit $TDIR
umask 022
for pkg in $pkgs ; do
abspkg="$(realpath "$pkg")"
info "Repacking $abspkg to local deb format (inside $TDIR) ..."
......
......@@ -123,6 +123,8 @@ __epm_repack_to_rpm()
;;
esac
umask 022
# TODO: improve
if echo "$pkgs" | grep -q "\.deb" ; then
assure_exists dpkg || fatal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment