added patch for profile dependencies (see bug 35885)
authorgenone <genone@gentoo.org>
Fri, 23 Jan 2004 04:17:47 +0000 (04:17 -0000)
committergenone <genone@gentoo.org>
Fri, 23 Jan 2004 04:17:47 +0000 (04:17 -0000)
svn path=/; revision=70

trunk/src/qpkg/qpkg

index fafb62ee95e88734f311207e342dfdf5e794988a..31b2e7f5b0478808481b0e0103ea7048fb37b845 100644 (file)
@@ -410,7 +410,7 @@ for p in ${ipak} ${upak} -;do
                                for flag in $(< ${deppkg}/USE)
                                do
                                        if [[ "${flag:0:1}" == "-" ]]; then
-                                               rdepend=$(echo ${rdepend} | sed "s/${flag:1}? ( [[:alnum:][:punct:]]* )//")
+                                               rdepend="$(echo ${rdepend} | sed 's/${flag:1}? ( [[:alnum:][:punct:]]* )//')"
                                        fi
                                done
 
@@ -421,9 +421,9 @@ for p in ${ipak} ${upak} -;do
                else
                        grep -R "${package}" /var/db/pkg/*/*/RDEPEND | \
                        cut -f5,6 -d"/" | sed -e "s:^:\t${color}:;s:$:${NO}:" | sort -u
-                       if [[ $(grep -R "*${package}" /etc/make.profile/packages) != "" ]]; then
-                               echo -e "\t${color}SYSTEM PROFILE${NO}"
-                       fi
+               fi
+               if [[ $(grep -R "*${package}" /etc/make.profile/packages) != "" ]]; then
+                       echo -e "\t${color}SYSTEM PROFILE${NO}"
                fi
        fi