Commit f08127c9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

update_versions.sh: write package reqs

parent 572f0947
...@@ -11,7 +11,8 @@ fatal() ...@@ -11,7 +11,8 @@ fatal()
TDIR=$LOGDIR/epm-play-versions TDIR=$LOGDIR/epm-play-versions
EDIR=$LOGDIR/epm-errors EDIR=$LOGDIR/epm-errors
LDIR=$LOGDIR/epm-logs LDIR=$LOGDIR/epm-logs
mkdir -p $TDIR/ $EDIR/ $LDIR/ RDIR=$LOGDIR/epm-requires
mkdir -p $TDIR/ $EDIR/ $LDIR/ $RDIR/
rm -f $EDIR/errors.txt rm -f $EDIR/errors.txt
...@@ -36,6 +37,7 @@ install_app() ...@@ -36,6 +37,7 @@ install_app()
local pkgname="$($EPM play --package-name $app $alt)" local pkgname="$($EPM play --package-name $app $alt)"
$EPM print version for package $pkgname > $TDIR/$pkgname 2>$EDIR/$pkgname && rm -f $EDIR/$pkgname $EPM print version for package $pkgname > $TDIR/$pkgname 2>$EDIR/$pkgname && rm -f $EDIR/$pkgname
[ -s $TDIR/$pkgname ] || echo "empty file $TDIR/$pkgname" >>$EDIR/errors.txt [ -s $TDIR/$pkgname ] || echo "empty file $TDIR/$pkgname" >>$EDIR/errors.txt
$EPM req $pkgname >$RDIR/$applog
} }
install_app_alt() install_app_alt()
...@@ -98,6 +100,7 @@ commit_git() ...@@ -98,6 +100,7 @@ commit_git()
commit_git $TDIR commit_git $TDIR
commit_git $EDIR commit_git $EDIR
commit_git $LDIR commit_git $LDIR
commit_git $RDIR
cd $TMP cd $TMP
rm -rf tmp.* rpm-tmp.* rm -rf tmp.* rpm-tmp.*
......
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