Author: coolo Date: Mon Apr 7 10:22:46 2008 New Revision: 46163 URL: http://svn.opensuse.org/viewcvs/yast?rev=46163&view=rev Log: update zypp repo too Added: branches/tmp/coolo/update_yast_repo/last_rev_yast (contents, props changed) - copied, changed from r46162, branches/tmp/coolo/update_yast_repo/last_rev branches/tmp/coolo/update_yast_repo/last_rev_zypp branches/tmp/coolo/update_yast_repo/packs_yast (props changed) - copied unchanged from r46149, branches/tmp/coolo/update_yast_repo/packs branches/tmp/coolo/update_yast_repo/packs_zypp branches/tmp/coolo/update_yast_repo/update_all.sh branches/tmp/coolo/update_yast_repo/update_repo.sh (contents, props changed) - copied, changed from r46162, branches/tmp/coolo/update_yast_repo/update_all.sh Removed: branches/tmp/coolo/update_yast_repo/last_rev branches/tmp/coolo/update_yast_repo/packs Modified: branches/tmp/coolo/update_yast_repo/update_rpm_auto (props changed) branches/tmp/coolo/update_yast_repo/update_rpm_cmake (props changed) Copied: branches/tmp/coolo/update_yast_repo/last_rev_yast (from r46162, branches/tmp/coolo/update_yast_repo/last_rev) URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/update_yast_repo/last_rev_yast?p2=branches/tmp/coolo/update_yast_repo/last_rev_yast&p1=branches/tmp/coolo/update_yast_repo/last_rev&r1=46162&r2=46163&rev=46163&view=diff ============================================================================== --- branches/tmp/coolo/update_yast_repo/last_rev (original) +++ branches/tmp/coolo/update_yast_repo/last_rev_yast Mon Apr 7 10:22:46 2008 @@ -1 +1 @@ -46162 +46163 Added: branches/tmp/coolo/update_yast_repo/last_rev_zypp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/update_yast_repo/last_rev_zypp?rev=46163&view=auto ============================================================================== --- branches/tmp/coolo/update_yast_repo/last_rev_zypp (added) +++ branches/tmp/coolo/update_yast_repo/last_rev_zypp Mon Apr 7 10:22:46 2008 @@ -0,0 +1 @@ +9407 Added: branches/tmp/coolo/update_yast_repo/packs_zypp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/update_yast_repo/packs_zypp?rev=46163&view=auto ============================================================================== --- branches/tmp/coolo/update_yast_repo/packs_zypp (added) +++ branches/tmp/coolo/update_yast_repo/packs_zypp Mon Apr 7 10:22:46 2008 @@ -0,0 +1,5 @@ +libsatsolver +libzypp +libzypp-testsuite-tools +libzypp-bindings +zypper Added: branches/tmp/coolo/update_yast_repo/update_all.sh URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/update_yast_repo/update_all.sh?rev=46163&view=auto ============================================================================== --- branches/tmp/coolo/update_yast_repo/update_all.sh (added) +++ branches/tmp/coolo/update_yast_repo/update_all.sh Mon Apr 7 10:22:46 2008 @@ -0,0 +1,2 @@ +bash update_repo.sh http://svn.opensuse.org/svn/yast/trunk yast YaST:SVN +bash update_repo.sh http://svn.opensuse.org/svn/zypp/trunk zypp zypp:svn Copied: branches/tmp/coolo/update_yast_repo/update_repo.sh (from r46162, branches/tmp/coolo/update_yast_repo/update_all.sh) URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/update_yast_repo/update_repo.sh?p2=branches/tmp/coolo/update_yast_repo/update_repo.sh&p1=branches/tmp/coolo/update_yast_repo/update_all.sh&r1=46162&r2=46163&rev=46163&view=diff ============================================================================== --- branches/tmp/coolo/update_yast_repo/update_all.sh (original) +++ branches/tmp/coolo/update_yast_repo/update_repo.sh Mon Apr 7 10:22:46 2008 @@ -1,10 +1,13 @@ set -e +BASEURL=$1 +SVN=$2 +PRJ=$3 homedir=$PWD dir=`mktemp -d` cd $dir -old=`cat $homedir/last_rev` -new=`LC_ALL=C svn info http://svn.opensuse.org/svn/yast/trunk | grep ^Revision: | sed -e 's,.*: *,,'` -for pack in `cat $homedir/packs`; do +old=`cat $homedir/last_rev_$SVN` +new=`LC_ALL=C svn info $BASEURL | grep ^Revision: | sed -e 's,.*: *,,'` +for pack in `cat $homedir/packs_$SVN`; do echo $pack @@ -12,17 +15,26 @@ yast2) repo=yast2 ;; - *) + yast-*) repo=${pack/yast2-/} ;; + libsatsolver) + repo=sat-solver + ;; + libzypp-testsuite-tools) + repo=libzypp-testsuite + ;; + *) + repo=$pack + ;; esac - url=http://svn.opensuse.org/svn/yast/trunk/$repo + url=$BASEURL/$repo log=`svn log -r$old:$new $url | grep ^r` || true test -n "$log" || continue - osc co YaST:SVN $pack - cd YaST:SVN/$pack + osc co $PRJ $pack + cd $PRJ/$pack shell=`mktemp` svn cat $url/package/update_rpm > $shell || true @@ -34,9 +46,9 @@ svn export -q $url cd `basename $url` if test -f CMakeLists.txt; then - $homedir/update_rpm_cmake + bash $homedir/update_rpm_cmake else - $homedir/update_rpm_auto + bash $homedir/update_rpm_auto fi cd .. rm -r `basename $url` @@ -47,5 +59,5 @@ done cd / rm -rf $dir -echo $(($new+1)) > $homedir/last_rev -#svn ci -m "updated repo" $homedir/last_rev +echo $(($new+1)) > $homedir/last_rev_$SVN +#svn ci -m "updated repo" $homedir/last_rev_$SVN -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org