Commit 9bcaf4bd authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack/download: verbose chmod only in verbose mode

parent 60fa1d8c
...@@ -68,7 +68,7 @@ __download_pkg_urls() ...@@ -68,7 +68,7 @@ __download_pkg_urls()
[ -z "$pkg_urls" ] && return [ -z "$pkg_urls" ] && return
for url in $pkg_urls ; do for url in $pkg_urls ; do
local tmppkg=$(mktemp -d) || fatal "failed mktemp -d" local tmppkg=$(mktemp -d) || fatal "failed mktemp -d"
docmd chmod -v a+rX $tmppkg docmd chmod $verbose a+rX $tmppkg
showcmd cd $tmppkg showcmd cd $tmppkg
cd $tmppkg || fatal cd $tmppkg || fatal
if docmd eget --latest "$url" ; then if docmd eget --latest "$url" ; then
...@@ -76,7 +76,7 @@ __download_pkg_urls() ...@@ -76,7 +76,7 @@ __download_pkg_urls()
# use downloaded file # use downloaded file
i=$(echo *.*) i=$(echo *.*)
[ -s "$tmppkg/$i" ] || continue [ -s "$tmppkg/$i" ] || continue
docmd chmod -v a+r "$tmppkg/$i" docmd chmod $verbose a+r "$tmppkg/$i"
pkg_files="$pkg_files $tmppkg/$i" pkg_files="$pkg_files $tmppkg/$i"
to_remove_pkg_files="$to_remove_pkg_files $tmppkg/$i" to_remove_pkg_files="$to_remove_pkg_files $tmppkg/$i"
else else
......
...@@ -221,7 +221,7 @@ __prepare_source_package() ...@@ -221,7 +221,7 @@ __prepare_source_package()
[ -n "$VERSION" ] || fatal "Can't get version from $alpkg." [ -n "$VERSION" ] || fatal "Can't get version from $alpkg."
SUBGENERIC='appimage' SUBGENERIC='appimage'
# TODO: move repack archive to erc? # TODO: move repack archive to erc?
[ -x "$alpkg" ] || docmd chmod u+x -v "$alpkg" [ -x "$alpkg" ] || docmd chmod u+x $verbose "$alpkg"
./$alpkg --appimage-extract || fatal ./$alpkg --appimage-extract || fatal
alpkg=$PKGNAME-$VERSION.tar alpkg=$PKGNAME-$VERSION.tar
assure_exists erc || fatal assure_exists erc || fatal
...@@ -313,7 +313,7 @@ __epm_repack_to_rpm() ...@@ -313,7 +313,7 @@ __epm_repack_to_rpm()
local pkgname="$(grep "^Name: " $spec | sed -e "s|Name: ||g" | head -n1)" local pkgname="$(grep "^Name: " $spec | sed -e "s|Name: ||g" | head -n1)"
# for tarballs fix permissions # for tarballs fix permissions
[ -n "$VERSION" ] && chmod -R a+rX $tmpbuilddir/$subdir/* [ -n "$VERSION" ] && chmod $verbose -R a+rX $tmpbuilddir/$subdir/*
__fix_spec $pkgname $tmpbuilddir/$subdir $spec __fix_spec $pkgname $tmpbuilddir/$subdir $spec
__apply_fix_code "generic" $tmpbuilddir/$subdir $spec __apply_fix_code "generic" $tmpbuilddir/$subdir $spec
......
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