]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- nice deps fetching moved here
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 6 Jun 2004 10:18:20 +0000 (10:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.264

builder.sh

index 2b79f8923038f82b4d4649aff6e06d4602b87671..0d3d4a24e5f94e9f93d8cf40f6acf749569749b9 100644 (file)
@@ -1019,7 +1019,16 @@ display_bconds()
 
 fetch_build_requires()
 {
-       if [ "${FETCH_BUILD_REQUIRES}" == "yes" ]; then
+       if [ "${FETCH_BUILD_REQUIRES}" = "yes" ]; then
+               if [ "$FETCH_BUILD_REQUIRES_RPMGETDEPS" = "yes" ]; then
+                        DEPS=$(rpm-getdeps $BCOND $SPECFILE 2> /dev/null | awk ' { print $3 } ' | xargs)
+                        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"
This page took 0.040737 seconds and 4 git commands to generate.