[jhalfs] 02/02: Make kf5-intro versioned
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. git pushed a commit to branch ablfs-more in repository jhalfs. commit 280cff6a4a5789f78277f3157d2b7414eb645a4e Author: Pierre Labastie <[email protected]> AuthorDate: Wed Nov 1 16:31:42 2023 +0100 Make kf5-intro versioned kf5-intro contains kf5-frameworks version, so should be run each time there is a new version. We retrieve this version from packages.ent, and we put it in packages.xml. This should be enough. --- BLFS/gen-special.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/BLFS/gen-special.sh b/BLFS/gen-special.sh index ec706fd..7f34fff 100755 --- a/BLFS/gen-special.sh +++ b/BLFS/gen-special.sh @@ -59,13 +59,21 @@ EOF # Non-versionned packages. Add to NV_LIST if you need more. for nv_id in $NV_LIST; do +# Actually, kf5-intro contains some version info, so should be +# versioned. For other packages, we define version to 1.0.0 +# because the DTD needs a version tag. + DUM_VER=1.0.0 + if [ $nv_id = kf5-intro ]; then + DUM_VER=$(grep kf5-version $BLFS_DIR/packages.ent | \ + sed 's/.*"\([^"]*\).*/\1/') + fi cat >>$SPECIAL_FILE << EOF <xsl:when test="@id='$nv_id'"> <xsl:text> </xsl:text> <package><xsl:text>
 </xsl:text> <xsl:element name="name">$nv_id</xsl:element> <xsl:text>
 </xsl:text> - <xsl:element name="version">1.0.0</xsl:element> + <xsl:element name="version">$DUM_VER</xsl:element> <xsl:if test="document(\$installed-packages)//package[name=current()/@id]"> <xsl:text>
 </xsl:text> -- To stop receiving notification emails like this one, please contact the administrator of this repository. -- http://lists.linuxfromscratch.org/sympa/info/alfs-discuss Unsubscribe: See the above information page