UPDATE=""
UPDATE5=""
ADD5=""
+NO5=""
ALWAYS_CVSUP=${ALWAYS_CVSUP:-"yes"}
CVSROOT=""
-5, --update-md5 - update md5 comments in spec, implies -nd -ncs
-a5, --add-md5 - add md5 comments to URL sources, implies -nc -nd -ncs
+-n5, --no-md5 - ignore md5 comments in spec
-D, --debug - enable script debugging mode,
-V, --version - output builder version
-a, --as_anon - get files via pserver as cvs@$CVS_SERVER,
src_md5 ()
{
+ [ X"$NO5" = X"yes" ] && return
no=$(src_no "$1")
[ -z "$no" ] && return
cd $SPECS_DIR
{
if [ "$AVAIL_BCONDS_WITH" != "" ] || [ "$AVAIL_BCONDS_WITHOUT" != "" ]; then
if [ "$BCOND" != "" ]; then
- echo -ne "You are going to build $SPECFILE with the following conditional flags:\n"
+ echo -ne "\nBuilding $SPECFILE with the following conditional flags:\n"
echo -ne "$BCOND"
else
- echo -ne "No conditional flags passed"
+ echo -ne "\nNo conditional flags passed"
fi
- echo -ne "\n\nfrom available:\n\n"
+ echo -ne "\n\nfrom available:\n"
echo -ne "--with :\t$AVAIL_BCONDS_WITH\n--without:\t$AVAIL_BCONDS_WITHOUT\n\n"
fi
}
fetch_build_requires()
{
- if [ "${FETCH_BUILD_REQUIRES}" == "yes" ]; then
+ if [ "${FETCH_BUILD_REQUIRES}" = "yes" ]; then
+ if [ "$FETCH_BUILD_REQUIRES_RPMGETDEPS" = "yes" ]; then
+ CONF=$(rpm-getdeps $BCOND $SPECFILE 2> /dev/null | awk '/^\-/ { print "@" $3 } ' | xargs)
+ DEPS=$(rpm-getdeps $BCOND $SPECFILE 2> /dev/null | awk '/^\+/ { print "@" $3 } ' | xargs)
+ if [ -n "$CONF" -o -n "$DEPS" ]; then
+ /usr/bin/poldek --update; /usr/bin/poldek --upa
+ fi
+ if [ -n "$CONF" ]; then
+ echo "Trying to uninstall conflicting packages ($CONF):"
+ /usr/bin/poldek --noask --nofollow -ev $CONF
+ fi
+ if [ -n "$DEPS" ]; then
+ echo "Trying to install dependencies ($DEPS):"
+ /usr/bin/poldek -uGv $DEPS
+ fi
+ return
+ fi
+
echo -ne "\nAll packages installed by fetch_build_requires() are written to:\n"
echo -ne "`pwd`/.${SPECFILE}_INSTALLED_PACKAGES\n"
echo -ne "\nIf anything fails, you may get rid of them by executing:\n"
done
export PROMPT_COMMAND=`echo -ne "\033]0;${SPECFILE}\007"`
if [ "$NOT_INSTALLED_PACKAGES" != "" ]; then
- echo "Nie uda³o siê zainstalowaæ nastêpuj±cych pakietów i ich zale¿no¶ci:"
+ echo "Unable to install following packages and their dependencies:"
for pkg in "$NOT_INSTALLED_PACKAGES"
do
echo $pkg
UPDATE5="yes"
ADD5="yes"
shift ;;
+ -n5 | --no-md5 )
+ NO5="yes"
+ shift ;;
-D | --debug )
DEBUG="yes"; shift ;;
-V | --version )