patch: fixed pkginstall.sh presort selection, now includes packages that are required by non-selected packages
Koen Martens <[email protected]> Mon, 08 Jan 2007 14:09:40 +0100
| Newsgroups | gmane.os.freebsd.freesbie |
|---|---|
| Organization | Sonologic |
| Message-ID | <[email protected]> |
Hi All,
Another small and trivial patch. I noticed that some packages
wouldn't get installed, even though I did select them. Turns out
these packages had a +REQUIRED_BY in their package db info, but the
+REQUIRED_BY packages were not selected. The pkginstall.sh
erronously skipped those packages. The patch:
--- scripts/pkginstall.sh Mon Jan 8 14:05:34 2007
+++ scripts/pkginstall.sh Mon Jan 8 14:05:58 2007
@@ -124,6 +124,8 @@
for j in $(cat /var/db/pkg/$i/+REQUIRED_BY); do
if grep -q ^${j}\$ $pkgfile; then
echo $i $j >> $presortfile
+ else
+ echo $i NULL >> $presortfile
fi
done
else
Gr,
Koen
--
FreeSBIE mailing list (http://www.freesbie.org)