From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-sysadm/2011-January/002470.html | 115 +++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 zarb-ml/mageia-sysadm/2011-January/002470.html (limited to 'zarb-ml/mageia-sysadm/2011-January/002470.html') diff --git a/zarb-ml/mageia-sysadm/2011-January/002470.html b/zarb-ml/mageia-sysadm/2011-January/002470.html new file mode 100644 index 000000000..b96098883 --- /dev/null +++ b/zarb-ml/mageia-sysadm/2011-January/002470.html @@ -0,0 +1,115 @@ + + + + [Mageia-sysadm] [358] add commit option + + + + + + + + + +

[Mageia-sysadm] [358] add commit option

+ root at mageia.org + root at mageia.org +
+ Thu Jan 27 22:21:43 CET 2011 +

+
+ +
Revision: 358
+Author:   boklm
+Date:     2011-01-27 22:21:43 +0100 (Thu, 27 Jan 2011)
+Log Message:
+-----------
+add commit option
+
+Modified Paths:
+--------------
+    build_system/mgarepo/trunk/MgaRepo/binrepo.py
+
+Modified: build_system/mgarepo/trunk/MgaRepo/binrepo.py
+===================================================================
+--- build_system/mgarepo/trunk/MgaRepo/binrepo.py	2011-01-27 21:19:18 UTC (rev 357)
++++ build_system/mgarepo/trunk/MgaRepo/binrepo.py	2011-01-27 21:21:43 UTC (rev 358)
+@@ -319,7 +319,7 @@
+     if commit:
+        svn.commit(binpath, log=message)
+ 
+-def upload(path, message=None):
++def upload(path, message=None, commit=True):
+     from MgaRepo.rpmutil import getpkgtopdir
+     svn = SVN()
+     if not os.path.exists(path):
+@@ -343,7 +343,8 @@
+             pass
+         if not os.path.exists(bindir):
+             create_package_dirs(bintopdir)
+-            svn.commit(topdir, log="%s: created binrepo structure" % silent)
++	    if commit:
++		svn.commit(topdir, log="%s: created binrepo structure" % silent)
+             download(topdir, show=False)
+     for path in paths:
+         if svn.info2(path):
+@@ -365,13 +366,15 @@
+     if svn.info2(sources):
+ 	svn.update(sources)
+     update = update_sources_threaded(topdir, added=paths)
+-    rev = svn.commit(binpath, log=message)
++    if commit:
++	rev = svn.commit(binpath, log=message)
+     if svn.info2(sources):
+ 	svn.update(sources)
+     else:
+ 	svn.add(sources)
+     update.join()
+-    svn.commit(sources, log=message, nonrecursive=True)
++    if commit:
++	svn.commit(sources, log=message, nonrecursive=True)
+ 
+ def mapped_revision(target, revision, wc=False):
+     """Maps a txtrepo revision to a binrepo datespec
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: </pipermail/mageia-sysadm/attachments/20110127/e0d2df33/attachment.html>
+
+ + + + + + + +
+

+ +
+More information about the Mageia-sysadm +mailing list
+ -- cgit v1.2.1