libspec.lib: Workaround for lines containing "Obsoletes pck <= ver"

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-01-25 19:30:56 +01:00
parent d349dcdd7a
commit 9cc2f35855
2 changed files with 8 additions and 2 deletions

View File

@ -34,6 +34,12 @@ Changes in version 1.9.1
Action 5: for better readability do add a newline to the message asking Action 5: for better readability do add a newline to the message asking
developers to run quality and security tests. developers to run quality and security tests.
+ bugfix
* lib/libspec.lib - Davide Madrisan:
Workaround the problem of lines containing an 'Obsoletes' followed by a '<='
(or similar) operator.
(Bug discovered by Silvan Calarco)
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 1.9.0 - Silvan Birthday Release Changes in version 1.9.0 - Silvan Birthday Release

View File

@ -1092,8 +1092,8 @@ rpmvars.solve "$filesname" "$specfile")" )
unset tok[0] unset tok[0]
notify.debug "\ notify.debug "\
$FUNCNAME: * entry found at line $linenum: \"${tok[*]}\"" $FUNCNAME: * entry found at line $linenum: \"${tok[*]}\""
SPEC_OBSOLETES[${#SPEC_OBSOLETES[*]}]="\ SPEC_OBSOLETES[${#SPEC_OBSOLETES[*]}]="\"\
$(rpmvars.solve "${tok[*]}" "$specfile")" $(rpmvars.solve "${tok[*]}" "$specfile")\""
notify.debug "\ notify.debug "\
$FUNCNAME: SPEC_OBSOLETES = ( ${SPEC_OBSOLETES[*]} )" $FUNCNAME: SPEC_OBSOLETES = ( ${SPEC_OBSOLETES[*]} )"