#265: Create function to download RPMs from koji for given NVR
-------------------------+--------------------------------------------------
 Reporter:  jskladan     |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  minor        |   Milestone:  Bite Food
Component:  core         |    Keywords:           
-------------------------+--------------------------------------------------
 Through most (if not all) the tests, we use a set of commands like this:

             #install packages from koji
             koji = autoqa.koji_utils.SimpleKojiClientSession()
             pkgurls = koji.nvr_to_urls(envr, arches = os.uname()[-1])
             rpms = []
             print "Saving RPMs to %s" % self.rpmdir
             #download packages
             for p in pkgurls:
                 # fetch package to rpmdir
                 print "Grabbing %s" % p
                 localfile = os.path.join(self.rpmdir, os.path.basename(p))
                 autoqa.util.grabber.urlgrab(p, localfile)
                 rpms.append(localfile)

 Which takes NVR and downloads all the relevant RPM files.

 I'd like to have this enclosed in a method in the autoqa lib, which takes
 NVR (or a list of NVRs), downloads packages to the tmpdir, and returns
 list os.path.realpath() of the respective RPM files.

-- 
Ticket URL: <https://fedorahosted.org/autoqa/ticket/265>
AutoQA <http://autoqa.fedorahosted.org>
Automated QA project
_______________________________________________
autoqa-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/autoqa-devel

Reply via email to