Author: pierre
Date: Tue Mar 9 09:51:24 2021
New Revision: 4212
Log:
Fix gen-special when an entity is commented out:
In the xorg application, mkfontdir is commented out, but we do not
check that because it is complicated with the shell. This leads to
mkfontfir appearing in the packages to install, which is not
wanted. Check that now.
Modified:
jhalfs/trunk/BLFS/gen-special.sh
Modified: jhalfs/trunk/BLFS/gen-special.sh
==============================================================================
--- jhalfs/trunk/BLFS/gen-special.sh Sat Feb 27 05:08:34 2021 (r4211)
+++ jhalfs/trunk/BLFS/gen-special.sh Tue Mar 9 09:51:24 2021 (r4212)
@@ -133,7 +133,11 @@
if [ "$i" = "$packname" ]; then break; fi
precpack=$i
done
-
+# It may happen that packname is not in list_cat, because its entity
+# is commented out in the xml, but we do not check that (too complicated).
+# In that case, the whole list is scanned, and $precpack=$i at the end.
+# when packname is found in the list $precpack!=$i.
+ if [ "$precpack" = "$i" ]; then continue; fi
cat >>$SPECIAL_FILE << EOF
<module><xsl:text>
 </xsl:text>
<xsl:element name="name">$packname</xsl:element>
--
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page