Make option matching stricter in spec setconf
Previously commented-out and/or similar entries could mistakenly match the grep (but fail the sed-part). Doesn't affect current config so its just future-proofing.
This commit is contained in:
parent
15b653debe
commit
457cb5d962
@ -106,7 +106,7 @@ as L2 and L3 forwarding.
|
|||||||
%build
|
%build
|
||||||
# set up a method for modifying the resulting .config file
|
# set up a method for modifying the resulting .config file
|
||||||
function setconf() {
|
function setconf() {
|
||||||
if grep -q $1 %{target}/.config; then
|
if grep -q ^$1= %{target}/.config; then
|
||||||
sed -i "s:^$1=.*$:$1=$2:g" %{target}/.config
|
sed -i "s:^$1=.*$:$1=$2:g" %{target}/.config
|
||||||
else
|
else
|
||||||
echo $1=$2 >> %{target}/.config
|
echo $1=$2 >> %{target}/.config
|
||||||
@ -299,6 +299,7 @@ install -m 644 ${comblib} %{buildroot}/%{_libdir}/${comblib}
|
|||||||
- Update to 2.2.0
|
- Update to 2.2.0
|
||||||
- Establish a driver directory for automatic driver loading
|
- Establish a driver directory for automatic driver loading
|
||||||
- Move the unversioned pmd symlinks from libdir -devel
|
- Move the unversioned pmd symlinks from libdir -devel
|
||||||
|
- Make option matching stricter in spec setconf
|
||||||
|
|
||||||
* Thu Oct 22 2015 Aaron Conole <aconole@redhat.com> - 2.1.0-3
|
* Thu Oct 22 2015 Aaron Conole <aconole@redhat.com> - 2.1.0-3
|
||||||
- Include examples binaries
|
- Include examples binaries
|
||||||
|
Loading…
Reference in New Issue
Block a user