Move yum.conf(.in) to source file.
This commit is contained in:
parent
f85ac5ae56
commit
879e0f0911
@ -187,6 +187,9 @@ Source4: README-replacement.in
|
|||||||
# Guestfish colour prompts.
|
# Guestfish colour prompts.
|
||||||
Source5: guestfish.sh
|
Source5: guestfish.sh
|
||||||
|
|
||||||
|
# Used to build the supermin appliance in Koji.
|
||||||
|
Source6: yum.conf.in
|
||||||
|
|
||||||
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_exceptions
|
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_exceptions
|
||||||
Provides: bundled(gnulib)
|
Provides: bundled(gnulib)
|
||||||
|
|
||||||
@ -818,24 +821,7 @@ else
|
|||||||
find /var/cache/{dnf,yum} -type f -name '*.rpm' -print0 | \
|
find /var/cache/{dnf,yum} -type f -name '*.rpm' -print0 | \
|
||||||
xargs -0 -n 1 cp -t repo
|
xargs -0 -n 1 cp -t repo
|
||||||
createrepo repo
|
createrepo repo
|
||||||
cat > yum.conf <<EOF
|
sed -e "s|@PWD@|$(pwd)|" %{SOURCE6} > yum.conf
|
||||||
[main]
|
|
||||||
cachedir=/var/cache/yum
|
|
||||||
debuglevel=1
|
|
||||||
logfile=/var/log/yum.log
|
|
||||||
retries=20
|
|
||||||
obsoletes=1
|
|
||||||
gpgcheck=0
|
|
||||||
assumeyes=1
|
|
||||||
reposdir=/dev/null
|
|
||||||
|
|
||||||
[local]
|
|
||||||
name=local
|
|
||||||
baseurl=file://$(pwd)/repo
|
|
||||||
failovermethod=priority
|
|
||||||
enabled=1
|
|
||||||
gpgcheck=0
|
|
||||||
EOF
|
|
||||||
extra=--with-supermin-packager-config=$(pwd)/yum.conf
|
extra=--with-supermin-packager-config=$(pwd)/yum.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
16
yum.conf.in
Normal file
16
yum.conf.in
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[main]
|
||||||
|
cachedir=/var/cache/yum
|
||||||
|
debuglevel=1
|
||||||
|
logfile=/var/log/yum.log
|
||||||
|
retries=20
|
||||||
|
obsoletes=1
|
||||||
|
gpgcheck=0
|
||||||
|
assumeyes=1
|
||||||
|
reposdir=/dev/null
|
||||||
|
|
||||||
|
[local]
|
||||||
|
name=local
|
||||||
|
baseurl=file://@PWD@/repo
|
||||||
|
failovermethod=priority
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=0
|
Loading…
Reference in New Issue
Block a user