1 |
Author: zmedico |
2 |
Date: 2008-10-02 16:57:45 +0000 (Thu, 02 Oct 2008) |
3 |
New Revision: 11613 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/repoman |
7 |
Log: |
8 |
Fix `svn status` output parsing for compatibility with subversion-1.6. Thanks |
9 |
to Arfrever for this patch. |
10 |
|
11 |
|
12 |
Modified: main/trunk/bin/repoman |
13 |
=================================================================== |
14 |
--- main/trunk/bin/repoman 2008-10-02 15:16:28 UTC (rev 11612) |
15 |
+++ main/trunk/bin/repoman 2008-10-02 16:57:45 UTC (rev 11613) |
16 |
@@ -753,8 +753,8 @@ |
17 |
|
18 |
if vcs == "svn": |
19 |
svnstatus = os.popen("svn status").readlines() |
20 |
- mychanged = [ "./" + elem.rstrip()[7:] for elem in svnstatus if elem and elem[:1] in "MR" ] |
21 |
- mynew = [ "./" + elem.rstrip()[7:] for elem in svnstatus if elem.startswith("A") ] |
22 |
+ mychanged = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem and elem[:1] in "MR" ] |
23 |
+ mynew = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("A") ] |
24 |
|
25 |
if vcs: |
26 |
new_ebuilds.update(x for x in mynew if x.endswith(".ebuild")) |
27 |
@@ -1711,9 +1711,9 @@ |
28 |
if vcs == "svn": |
29 |
if myautoadd: |
30 |
svnstatus = os.popen("svn status").readlines() |
31 |
- mychanged = [ "./" + elem.rstrip()[7:] for elem in svnstatus if elem and elem[:1] in "MR" ] |
32 |
- mynew = [ "./" + elem.rstrip()[7:] for elem in svnstatus if elem.startswith("A") ] |
33 |
- myremoved = [ "./" + elem.rstrip()[7:] for elem in svnstatus if elem.startswith("D") ] |
34 |
+ mychanged = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem and elem[:1] in "MR" ] |
35 |
+ mynew = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("A") ] |
36 |
+ myremoved = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("D") ] |
37 |
# in contrast to CVS, SVN expands nothing by default. |
38 |
# bin_blobs historically |
39 |
# were just there to see what files need to be checked for |