[rancid] Re: RANCID 2.3.2 , Patch for SVN bug
Nicolas DEFFAYET
nicolas-ml at deffayet.com
Mon May 18 08:33:38 UTC 2009
Hello All,
SVN bug discuss in
http://www.shrubbery.net/pipermail/rancid-discuss/2006-August/001679.html and http://www.shrubbery.net/pipermail/rancid-discuss/2008-February/002822.html is still not fixed in 2.3.2.
Can you please include the following patch for fix "svn: Directory
'<GROUP>' is out of date" ?
# vi bin/control_rancid.in
---
--- rancid-2.3.2a9.org/bin/control_rancid.in 2008-04-24
21:07:05.000000000 +0200
+++ rancid-2.3.2a9/bin/control_rancid.in 2009-03-04
10:58:13.000000000 +0100
@@ -168,6 +168,12 @@
fi
fi
+# svn update to avoid 'Out of date' error
+if [ $RCSSYS = svn ]
+then
+ svn update
+fi
+
# do cvs update of router.db in case anyone has fiddled.
$RCSSYS update router.db > $TMP 2>&1
grep "^C" $TMP > /dev/null
---
# vi bin/rancid-cvs.in
---
--- rancid-2.3.2a9.org/bin/rancid-cvs.in 2008-05-23
21:39:25.000000000 +0200
+++ rancid-2.3.2a9/bin/rancid-cvs.in 2009-03-04 10:58:58.000000000
+0100
@@ -131,6 +131,8 @@
svn import -m "$GROUP" . file:///$CVSROOT/$GROUP
cd $BASEDIR
svn checkout file:///$CVSROOT/$GROUP $GROUP
+ cd $DIR
+ svn update
fi
fi
cd $DIR
---
Thank you
Best Regards,
--
Nicolas DEFFAYET
More information about the Rancid-announce
mailing list