From Fedora Project Wiki
No edit summary |
|||
Line 20: | Line 20: | ||
file.replace(' ', '%20'), | file.replace(' ', '%20'), | ||
csum, file.replace(' ', '%20')) | csum, file.replace(' ', '%20')) | ||
So e.g. the line from "sources": | |||
676dc96593362b7b0aa54fea0c8e744c pygobject-3.3.4.tar.xz | |||
Giving e.g. this link: | |||
http://pkgs.fedoraproject.org/repo/pkgs/pygobject3/pygobject-3.3.4.tar.xz/676dc96593362b7b0aa54fea0c8e744c/pygobject-3.3.4.tar.xz |
Revision as of 22:18, 19 January 2013
Getting at files from koji's lookaside
$ cat /etc/rpkg/fedpkg.conf [fedpkg] lookaside = http://pkgs.fedoraproject.org/repo/pkgs lookasidehash = md5 lookaside_cgi = https://pkgs.fedoraproject.org/repo/pkgs/upload.cgi gitbaseurl = ssh://%(user)s@pkgs.fedoraproject.org/%(module)s anongiturl = git://pkgs.fedoraproject.org/%(module)s tracbaseurl = https://%(user)s:%(password)s@fedorahosted.org/rel-eng/login/xmlrpc branchre = f\d$|f\d\d$|el\d$|olpc\d$|master$ kojiconfig = /etc/koji.conf build_client = koji
From /usr/lib/python2.7/site-packages/pyrpkg/__init__.py's sources() method:
self.log.info("Downloading %s" % (file)) url = '%s/%s/%s/%s/%s' % (self.lookaside, self.module_name, file.replace(' ', '%20'), csum, file.replace(' ', '%20'))
So e.g. the line from "sources":
676dc96593362b7b0aa54fea0c8e744c pygobject-3.3.4.tar.xz
Giving e.g. this link: http://pkgs.fedoraproject.org/repo/pkgs/pygobject3/pygobject-3.3.4.tar.xz/676dc96593362b7b0aa54fea0c8e744c/pygobject-3.3.4.tar.xz