![]() There is a will to offer SIGs the possibility to use a similar lookaside structure as the one used by CentOS Stream and Fedora which is not tied to the name of the archive but to its hash. The idea though is to offer the new structure as opt-in and thus keep the old structure working. We thus need to adjust the get_sources.sh script to support both structure. This commit makes it so, it allows both exploded-srpm and flat dist-git structures to use either the old or new lookaside cache structure. The way this is achieved is simply to first call the URL corresponding to the old lookaside structure. If that call returns a http code in the 200 range, then the script stops, otherwise, the script will call the URL corresponding to the new lookaside structure. This commit also makes consistent the different curl calls and add --retry 5 on all of them (which does not work for 404 replies, so using the new structure will not results in 6 requests to the old one before moving on, but just 1). Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr> |
||
---|---|---|
mqtt | ||
centos.git.repolist.py | ||
get_sources.sh | ||
into_srpm.sh | ||
lookaside_upload | ||
README.md | ||
return_disttag.sh | ||
rpm-tree-prep.sh | ||
show_possible_srpms.sh |
Welcome to git.centos.org
This git repo contains the following scripts that make interfacing with git.c.o, reimzul and nazar as easy as possible.
Tools:
-
get_sources.sh: when run from inside a package git checkout, will download the relevant non-text sources from the lookaside cache and drop them into the SOURCES/ dir; note: it will generate 0 byte files in place, rather than download them.
-
into_srpm.sh: reconstructs the srpm from a given commit
-
centos.git.repolist.py: This package gets list of repos from the pagure API, used to grab CentOS sources. Requires the package 'python-requests' which is in the EPEL repo for CentOS-6.
-
return_disttag.sh: Extracts what appears to be the value of %{dist} from the commit message. NOTE: Requires the package scl-utils-build to be installed to use.
-
rpm-tree-prep.sh: A very simple script that prepares a git tree for patching. (runs rpmbuild -bp on the tree)
-
show_possible_srpms.sh: when run from inside a package git checkout, shows the list of possible SRPMs available to be built.
========================
Unless otherwise noted inside the code of an individual script, all scripts in this repository are licensed with the GPL Version 2.0 by default. Community members who initially contribute a script can also choose any OSI Approved License for their scripts if they would rather have something other than the default.