Hi there,

we encountered problems with 'Cargo.toml's that contain windows line
endings. We fixed that in ptxdist-2025.08 by making the regex in
scripts/lib/ptxd_make_world.extract.sh less strict. Maybe you're interested
in applying that fix for the upcoming releases.

# Making the regex less strict so that it can handle windows line endings
in Config.toml
--- a/scripts/lib/ptxd_make_world_extract.sh 2025-08-06 09:49:02.669095635
+0200
+++ b/scripts/lib/ptxd_make_world_extract.sh 2025-08-06 09:49:02.567095324
+0200
@@ -92,7 +92,7 @@
     abs_srcdir="${pkg_cargo_home}/source/${srcdir}"
     mkdir "${abs_srcdir}" &&
     tar -C "${abs_srcdir}" --strip-components=1 -xf "${src}" || break
-    if grep -qi '^\[package\]$' "${abs_srcdir}/Cargo.toml"; then
+    if grep -qi '^\[package\][[:space:]]*$' "${abs_srcdir}/Cargo.toml";
then
  if [ "${tmp}" = "${srcdir}" ]; then
     # don't set the checksum for crates from git, they would trigger
Cargo.lock changes
     set -- $(sha256sum "${src}")


Kind regards,
Tilman Moser

Reply via email to