[Yum-devel] reposync and srpms

James Antill james at fedoraproject.org
Thu Jan 22 17:21:54 UTC 2009


On Thu, 2009-01-22 at 11:37 -0500, Charlie Brady wrote:
> It seems that reposync (at least as of yum-utils-1.1.10) ignores -source 
> repos (or src.rpm files). Is that intentional? Is there another tool which 
> would do that? If not, would it take much to add the feature to reposync?

 This is the fix to do it all the time, but I guess we probably want an
option:

diff --git a/reposync.py b/reposync.py
index 1d6632b..a66b94f 100755
--- a/reposync.py
+++ b/reposync.py
@@ -179,7 +179,7 @@ def main():
     my.doRpmDBSetup()
     my.doRepoSetup()
     try:
-        my.doSackSetup(rpmUtils.arch.getArchList(opts.arch))
+        my.doSackSetup(rpmUtils.arch.getArchList(opts.arch) + ['src'])
     except yum.Errors.RepoError, e:
         print >> sys.stderr, "Error setting up repositories: %s" % e
         # maybe this shouldn't be entirely fatal




More information about the Yum-devel mailing list