Commit 912aa937 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add --scripts support to repack foreign packages with alien

parent 24f4cc09
...@@ -350,7 +350,7 @@ check_option() ...@@ -350,7 +350,7 @@ check_option()
--repack) # HELPOPT: repack rpm package(s) before install --repack) # HELPOPT: repack rpm package(s) before install
repack="--repack" repack="--repack"
;; ;;
--scripts) # HELPOPT: include scripts in repacked rpm package(s) (see --repack) --scripts) # HELPOPT: include scripts in repacked rpm package(s) (see --repack or repacking when foreign package is installed)
scripts="--scripts" scripts="--scripts"
;; ;;
--sort) # HELPOPT: sort output, f.i. --sort=size (supported only for packages command) --sort) # HELPOPT: sort output, f.i. --sort=size (supported only for packages command)
......
...@@ -310,7 +310,7 @@ __epm_check_if_try_install_deb() ...@@ -310,7 +310,7 @@ __epm_check_if_try_install_deb()
cd $TDIR || fatal cd $TDIR || fatal
for pkg in $debpkgs ; do for pkg in $debpkgs ; do
# TODO: fakeroot for non ALT? # TODO: fakeroot for non ALT?
showcmd_store_output alien -r -k --scripts "$pkg" || fatal showcmd_store_output alien -r -k $scripts "$pkg" || fatal
local RPMCONVERTED=$(grep "rpm generated" $RC_STDOUT | sed -e "s| generated||g") local RPMCONVERTED=$(grep "rpm generated" $RC_STDOUT | sed -e "s| generated||g")
clean_store_output clean_store_output
docmd epm install $force $nodeps $RPMCONVERTED docmd epm install $force $nodeps $RPMCONVERTED
...@@ -340,7 +340,7 @@ __epm_check_if_try_install_rpm() ...@@ -340,7 +340,7 @@ __epm_check_if_try_install_rpm()
local TDIR=$(mktemp -d) local TDIR=$(mktemp -d)
cd $TDIR || fatal cd $TDIR || fatal
for pkg in $rpmpkgs ; do for pkg in $rpmpkgs ; do
showcmd_store_output fakeroot alien -d -k --scripts "$pkg" showcmd_store_output fakeroot alien -d -k $scripts "$pkg"
local DEBCONVERTED=$(grep "deb generated" $RC_STDOUT | sed -e "s| generated||g") local DEBCONVERTED=$(grep "deb generated" $RC_STDOUT | sed -e "s| generated||g")
clean_store_output clean_store_output
docmd epm install $force $nodeps $DEBCONVERTED docmd epm install $force $nodeps $DEBCONVERTED
......
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