Commit 4ff6ce3e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: restore fixing tarball files permissions

parent 247add04
...@@ -111,6 +111,7 @@ __prepare_source_package() ...@@ -111,6 +111,7 @@ __prepare_source_package()
SUBGENERIC='snap' SUBGENERIC='snap'
else else
__epm_pack_run_handler generic-tar "$pkg" __epm_pack_run_handler generic-tar "$pkg"
SUBGENERIC='tar'
fi fi
# it is possible there are a few files, we don't support it # it is possible there are a few files, we don't support it
......
...@@ -168,6 +168,9 @@ __epm_repack_to_rpm() ...@@ -168,6 +168,9 @@ __epm_repack_to_rpm()
local buildroot="$tmpbuilddir/$subdir" local buildroot="$tmpbuilddir/$subdir"
# for tarballs fix permissions (ideally fix in pack.d/generic-tar.sh, but there is tar repacking only)
[ "$SUBGENERIC" = "tar" ] && chmod $verbose -R a+rX $buildroot/*
# detect spec and move to prev dir # detect spec and move to prev dir
local spec="$(echo $buildroot/*.spec)" local spec="$(echo $buildroot/*.spec)"
[ -s "$spec" ] || fatal "Can't find spec $spec" [ -s "$spec" ] || fatal "Can't find spec $spec"
...@@ -181,7 +184,7 @@ __epm_repack_to_rpm() ...@@ -181,7 +184,7 @@ __epm_repack_to_rpm()
__fix_spec $pkgname $buildroot $spec __fix_spec $pkgname $buildroot $spec
__apply_fix_code "generic" $buildroot $spec $pkgname $abspkg __apply_fix_code "generic" $buildroot $spec $pkgname $abspkg
[ -n "$SUBGENERIC" ] && __apply_fix_code "generic-$SUBGENERIC" $buildroot $spec $pkgname $abspkg __apply_fix_code "generic-$SUBGENERIC" $buildroot $spec $pkgname $abspkg
__apply_fix_code $pkgname $buildroot $spec $pkgname $abspkg __apply_fix_code $pkgname $buildroot $spec $pkgname $abspkg
cd - >/dev/null cd - >/dev/null
......
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