[CentOS-devel] [PATCH 3/3] Added simple override file for altering top level vars.

Jim Perrin

jperrin at centos.org
Mon Jun 9 23:40:30 UTC 2014


Thanks for these.

I believe the longer-term plan is to either adapt or otherwise create
something similar to fedpkg to do this with a better structure. This
will help us get there.

On 06/09/2014 03:56 PM, Pat Riehecky wrote:
> From: Pat Riehecky <riehecky at fnal.gov>
> 
> ---
>  get_sources.sh |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/get_sources.sh b/get_sources.sh
> index 9df5a3b..24e507c 100755
> --- a/get_sources.sh
> +++ b/get_sources.sh
> @@ -13,6 +13,12 @@ surl="https://git.centos.org/sources/"
>  
>  pn=$(basename `pwd`)
>  f=.${pn}.metadata
> +
> +# for setting any overrides, such as surl or f
> +if [ -f /etc/centos-git-common ]; then
> +  . /etc/centos-git-common
> +fi
> +
>  if [ ! -e ${f} ] ||  [ ! -d .git ] || [ ! -d SOURCES ]; then
>    echo 'You need to run this from inside a sources git repo'
>    exit 1
> 

-- 
Jim Perrin
The CentOS Project | http://www.centos.org
twitter: @BitIntegrity | GPG Key: FA09AD77



More information about the CentOS-devel mailing list