cvs2svn-migration/trunk/migrator

saq cvs at pld-linux.org
Sat Oct 8 20:11:59 CEST 2005


Author: saq
Date: Sat Oct  8 20:11:42 2005
New Revision: 6435

Modified:
   cvs2svn-migration/trunk/migrator
Log:
- identify icon files too

Modified: cvs2svn-migration/trunk/migrator
==============================================================================
--- cvs2svn-migration/trunk/migrator	(original)
+++ cvs2svn-migration/trunk/migrator	Sat Oct  8 20:11:42 2005
@@ -88,7 +88,8 @@
 		# This part would have been easier in another language
 		p1=Popen(["co","-p","-r"+rev,f[:-2]],stdout=PIPE,stderr=file("/dev/null","w"))
 		# post-processing to maximize the chance of a successful parse
-		p2=Popen(["sed",r"/^Icon:/d;/^Serial:/d;/^%define.*_kernel_ver/d;s/^Copyright:/License:/;/^%prep/p;/^%prep/,+99999d"],
+		p2=Popen(["sed",r"s/^Icon:/%define SOURCE0ICON/;/^Serial:/d;/^%define.*_kernel_ver/d;"+
+			r"s/^Copyright:/License:/;/^%prep/p;/^%prep/,+99999d"],
 			stdin=p1.stdout,stdout=file(tmpspecfile,"w")
 		)
 		if p1.wait()!=0 or p2.wait()!=0:



More information about the pld-cvs-commit mailing list