Commit 073d25e3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-pack: reset EPMCURDIR as hack

parent 3430e268
...@@ -47,15 +47,16 @@ __epm_pack() ...@@ -47,15 +47,16 @@ __epm_pack()
if [ -n "$download_only" ] ; then if [ -n "$download_only" ] ; then
echo echo
cp $returntarname . mv -v $returntarname .
return return
fi fi
[ -s "$returntarname" ] || fatal "pack script $repackcode didn't return tarname" [ -s "$returntarname" ] || fatal "pack script $repackcode didn't return tarname"
# FIXME: it is better use current dir, but there will troubles with epm install --download-only later
mv $returntarname $tmpdir/ || fatal mv $returntarname $tmpdir/ || fatal
cd $tmpdir || fatal cd $tmpdir || fatal
docmd epm repack --quiet "$(basename "$returntarname")" ( unset EPMCURDIR ; docmd epm repack --quiet "$(basename "$returntarname")" )
packed_pkgs="$tmpdir/$(echo *.$PKGFORMAT)" packed_pkgs="$tmpdir/$(echo *.$PKGFORMAT)"
} }
......
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