/[smeserver]/rpms/smeserver-mock/sme10/smeserver-mock-1.0-change-log.patch
ViewVC logotype

Annotation of /rpms/smeserver-mock/sme10/smeserver-mock-1.0-change-log.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Nov 18 18:18:24 2022 UTC (23 months, 1 week ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mock-1_0-22_el7_sme, smeserver-mock-1_0-16_el7_sme, smeserver-mock-1_0-21_el7_sme, smeserver-mock-1_0-19_el7_sme, smeserver-mock-1_0-20_el7_sme, smeserver-mock-1_0-18_el7_sme, smeserver-mock-1_0-17_el7_sme, HEAD
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-16.sme
- fix change-log not handling tab for version or release

1 jpp 1.1 diff -Nur --no-dereference smeserver-mock-1.0.old/root/usr/bin/change-log smeserver-mock-1.0/root/usr/bin/change-log
2     --- smeserver-mock-1.0.old/root/usr/bin/change-log 2022-11-18 13:03:28.025000000 -0500
3     +++ smeserver-mock-1.0/root/usr/bin/change-log 2022-11-18 13:16:34.677000000 -0500
4     @@ -20,7 +20,7 @@
5     #Release: 24
6     #Release: 24%{?dist}
7     rele=0;
8     -release=`cat $specfile|egrep '^%define (main_)?release'|cut -d " " -f3|cut -d% -f1`;
9     +release=`cat $specfile|egrep '^%define (main_)?release'|tr '\t' ' ' |cut -d " " -f3|cut -d% -f1`;
10     if [[ ! $release ]]; then
11     release=`cat $specfile|egrep '^Release:'|cut -d ":" -f2| tr -d "[:space:]"|cut -d% -f1`;
12     rele=1;
13     @@ -29,7 +29,7 @@
14     echo "search for version in $specfile";
15     #%define version 23
16     #Version: 23
17     -version=`cat $specfile|grep -i '%define version'|cut -d " " -f3|cut -d% -f1`;
18     +version=`cat $specfile|grep -i '%define version'|tr '\t' ' ' |cut -d " " -f3|cut -d% -f1`;
19     if [[ ! $version ]]; then
20     version=`cat $specfile|egrep '^Version:'|cut -d ":" -f2| tr -d "[:space:]"`;
21     fi

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed