extras-buildsys/utils repoconv.py,1.2,1.3

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Thu Jul 7 17:24:10 UTC 2005


Author: dcbw

Update of /cvs/fedora/extras-buildsys/utils
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32424/utils

Modified Files:
	repoconv.py 
Log Message:
Make it work with SRPM packages


Index: repoconv.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/repoconv.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- repoconv.py	17 Jun 2005 15:52:35 -0000	1.2
+++ repoconv.py	7 Jul 2005 17:24:08 -0000	1.3
@@ -81,12 +81,12 @@
             dest_file = os.path.join(destdir, os.path.basename(package))
         else:
             (n,a,e,v,r,srpm) = naevr(package)
-            t = srpm.split('-')
-            srpm = t[0]
             if package.endswith('.src.rpm'):
                 sub_path = os.path.join("%s" % n, "%s-%s" % (v, r))
                 sub_path = os.path.join(sub_path, "SRPM")
             else:
+                t = srpm.split('-')
+                srpm = t[0]
                 sub_path = os.path.join("%s" % srpm, "%s-%s" % (v, r))
                 sub_path = os.path.join(sub_path, "%s" % a)
             dest_file = os.path.join(destdir, sub_path, os.path.basename(package))




More information about the scm-commits mailing list