pck-update (-a6): never include in the list of build requirements a self-provided package

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-02-05 20:00:00 +01:00
parent e682c64fc0
commit 18ab4ff63d
2 changed files with 11 additions and 2 deletions

View File

@ -25,6 +25,10 @@ Changes in version 1.9.2
* pck-update - Davide Madrisan: * pck-update - Davide Madrisan:
Action 6: do support static requirements containing <,>,<=,>=,... Action 6: do support static requirements containing <,>,<=,>=,...
* pck-update - Davide Madrisan:
Action 6: never include in the list of build requirements an rpm provided
by the package itself.
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 1.9.1 Changes in version 1.9.1

View File

@ -2465,8 +2465,13 @@ $(rpm --qf %{name} -qf $solibpath_catch 2>/dev/null)" 2>/dev/null
rpm -q ${buildreq}-devel &>/dev/null && rpm -q ${buildreq}-devel &>/dev/null &&
buildreq="$(rpm -q --qf %{name} ${buildreq}-devel)" buildreq="$(rpm -q --qf %{name} ${buildreq}-devel)"
fi fi
# finally print buildrequires block if [ -z "$(for p in ${SPEC_TARGET[*]}; do
[ "$buildreq" ] && echo "BuildRequires: $buildreq" # self-provided package
[ "$p" = "$buildreq" ] && echo "$p"
done)" ]; then
# finally print buildrequires block
[ "$buildreq" ] && echo "BuildRequires: $buildreq"
fi
done ) >> $frequires done ) >> $frequires
notify.note " notify.note "