[jhalfs] 07/09: Add TEST_MISMATCH set to the opposite of GETPKG

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Fri, 31 Jan 2025 10:13:16 +0000
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 plabs/check-version
in repository jhalfs.

commit 1276ebffec47300b8f5f98ef38eeb850832e3d4e
Author: Pierre Labastie <[email protected]>
AuthorDate: Tue Jan 28 15:48:19 2025 +0100

    Add TEST_MISMATCH set to the opposite of GETPKG
    
    This is for checking a version mismatch between book and directory name.
    The preceding commits allow to do this check when downloading packages,
    but if "Retrieve source files" is not ticked, this is not done. In this
    case we do it in scriptlets. But we have to pass a parameter to the
    xsl stylesheet to tell to generate this test in scriptlet.
    
    This commit defines a variable TEST_MISMATCH set to the opposite of GETPKG.
    
    Part of #1740
---
 jhalfs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/jhalfs b/jhalfs
index 5f44a4f..8a95369 100755
--- a/jhalfs
+++ b/jhalfs
@@ -184,6 +184,13 @@ if [[ "${NO_PROGRESS_BAR}" = "y" ]] ; then
   NO_PROGRESS="#"
 fi
 
+# The next variable is passed to the xsl stylesheet to tell whether we want
+# to test a mismatch between the version and the directory name. it is
+# the negation of GETPKG, because if we get the source files, we test
+# the mismatch between directory name and version when receiving the file.
+TEST_MISMATCH=y
+if [ "$GETPKG" = y ]; then TEST_MISMATCH=n; fi
+
 # Sanity check on the location of $BUILDDIR / $JHALFSDIR
 CWD="$(cd "$(dirname "$0")" && pwd)"
 if [[ $JHALFSDIR == "$CWD" ]]; then

-- 
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