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() ...@@ -34,6 +34,8 @@ __epm_repack_to_deb()
TDIR="$(mktemp -d --tmpdir=$BIGTMPDIR)" || fatal TDIR="$(mktemp -d --tmpdir=$BIGTMPDIR)" || fatal
remove_on_exit $TDIR remove_on_exit $TDIR
umask 022
for pkg in $pkgs ; do for pkg in $pkgs ; do
abspkg="$(realpath "$pkg")" abspkg="$(realpath "$pkg")"
info "Repacking $abspkg to local deb format (inside $TDIR) ..." info "Repacking $abspkg to local deb format (inside $TDIR) ..."
......
...@@ -123,6 +123,8 @@ __epm_repack_to_rpm() ...@@ -123,6 +123,8 @@ __epm_repack_to_rpm()
;; ;;
esac esac
umask 022
# TODO: improve # TODO: improve
if echo "$pkgs" | grep -q "\.deb" ; then if echo "$pkgs" | grep -q "\.deb" ; then
assure_exists dpkg || fatal 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