extras-buildsys/utils/pushscript WhatsNew.py,1.13,1.14

Michael Schwendt mschwendt at fedoraproject.org
Sat Aug 1 17:35:51 UTC 2009


Author: mschwendt

Update of /cvs/fedora/extras-buildsys/utils/pushscript
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5675

Modified Files:
	WhatsNew.py 
Log Message:
it's still /os for repos - ugh


Index: WhatsNew.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/WhatsNew.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- WhatsNew.py	1 Aug 2009 09:12:10 -0000	1.13
+++ WhatsNew.py	1 Aug 2009 17:35:51 -0000	1.14
@@ -267,7 +267,10 @@
             if not dirs or not isinstance(dirs,list):
                 dirs = []
             for dir in dirs:
-                srcdir = dir.replace('$arch','source/SRPMS')
+                archpos = dir.rfind('$arch')
+                if archpos<0:
+                    continue
+                srcdir = dir[:archpos]+'source/SRPMS'
                 if os.path.exists( srcdir ):
                     srcdirs.append( srcdir )
                 else:




More information about the fedora-extras-commits mailing list