Commit 39a15213 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: do not require unrar

parent 36edf968
......@@ -149,10 +149,12 @@ function get_zip()
# TODO: use external converter
function get_rar()
{
UNRAR=/usr/bin/unrar
test -x $UNRAR || return
get_archive rar || return
mkdir $WEXT.rar.dir || return
cd $WEXT.rar.dir
unrar x ../$WEXT.rar && tar cf ../$WEXT.tar . || return
$UNRAR x ../$WEXT.rar && tar cf ../$WEXT.tar . || return
cd ..
rm -rf $WEXT.rar.dir
}
......
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