[debian-www 00874] Debian JP master SVN www commits (rev.2076)

Debian JP webadmin webadmin @ debian.or.jp
2020年 5月 28日 (木) 22:08:31 JST


=======================================================
Repository: /org/svn.debian.or.jp/repos
  Revision: 2076
  Commiter: tach
      Date: 2020-05-28 22:08:31 +0900 (2020年05月28日 (木))
=======================================================
Log:

Write "svn update" output to logfile


=======================================================
Changed:

U   www/trunk/progs/update

Modified: www/trunk/progs/update
===================================================================
--- www/trunk/progs/update	2020-05-28 12:59:19 UTC (rev 2075)
+++ www/trunk/progs/update	2020-05-28 13:08:31 UTC (rev 2076)
@@ -15,7 +15,13 @@
 
 cd $SVNPATH
 
-RET=$(svn update | perl -e '$ret = ""; while (<>) {
+# Update local working copy
+TMPFILE=`mktemp /tmp/www.svnup.XXXXXX`
+trap "rm $TMPFILE" EXIT
+svn update > $TMPFILE
+grep -q 'Updated to revision' $TMPFILE && cat $TMPFILE
+
+RET=$(cat $TMPFILE | perl -e '$ret = ""; while (<>) {
   $ret .="mirror " if /MirrorsJP.list/;
     }; print "$ret"')
 



debian-www メーリングリストの案内