]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- Cosmetix. Possibly flameable.
authoryoshi <yoshi@pld-linux.org>
Mon, 17 Nov 2003 02:03:17 +0000 (02:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.218

builder.sh

index c371e65b780f9d46570c3b91e5bebbb4b09f5b13..10f78cac26fe34583261f8399fcbd4af26d1124f 100644 (file)
@@ -831,6 +831,7 @@ remove_build_requires()
                    *)
                            echo You may want to manually remove following BuildRequires fetched:
                            echo $INSTALLED_PACKAGES
+                           echo Try poldek -e \`cat `pwd`/.${SPECFILE}_INSTALLED_PACKAGES\`
                    ;;
            esac
     fi
@@ -853,6 +854,11 @@ fi
 fetch_build_requires()
 {
 if [ "$FETCH_BUILD_REQUIRES" == "yes" ]; then
+           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"
+           echo "poldek -e \`cat `pwd`/.${SPECFILE}_INSTALLED_PACKAGES\`\n\n"
+           echo > `pwd`/.${SPECFILE}_INSTALLED_PACKAGES
             for package_item in `cat $SPECFILE|grep -B100000 ^%changelog|grep -v ^#|grep BuildRequires|grep -v ^-|sed -e "s/^.*BuildRequires://g"|awk '{print $1}'|sed -e s,\(.*\),,g -e s,%{,,g`
             do
                package_item=`echo $package_item|sed -e s,rpmbuild,rpm-build,g`
@@ -914,15 +920,15 @@ if [ "$FETCH_BUILD_REQUIRES" == "yes" ]; then
               
                 if [ "$GO" == "yes" ]; then
                         if [ "`rpm -q $package|sed -e "s/$package.*/$package/g"`" != "$package" ]; then
-                                echo "$package [package not installed. installing]"
-                               poldek -t -i $package --dumpn="$package-req.txt"
-                               for package_name in `cat "$package-req.txt"|grep -v ^#`
+                                echo "Testing if $package has subrequirements..."
+                               poldek -t -i $package --dumpn=".$package-req.txt"
+                               for package_name in `cat ".$package-req.txt"|grep -v ^#`
                                do 
                                        if [ "$package_name" == "$package" ]; then
                                                echo -ne "Installing BuildRequired package:\t$package_name\n"
                                                poldek -i $package_name
                                        else
-                                               echo -ne "Installing Required package:\t$package_name\n"
+                                               echo -ne "Installing (sub)Required package:\t$package_name\n"
                                                poldek -i $package_name
                                        fi
                                        case $? in
@@ -936,10 +942,11 @@ if [ "$FETCH_BUILD_REQUIRES" == "yes" ]; then
                                                ;;
                                        0)
                                                INSTALLED_PACKAGES="$package_name $INSTALLED_PACKAGES"
+                                               echo $package_name >> `pwd`/.${SPECFILE}_INSTALLED_PACKAGES
                                                ;;
                                        esac
                                done
-                               rm "$package-req.txt"
+                               rm ".$package-req.txt"
                         else
                                 echo "Package $package is already installed. BuildRequirement satisfied."
                         fi
This page took 0.049387 seconds and 4 git commands to generate.