From 750e998c9383bf828d2a7005350d9dc440646b5e Mon Sep 17 00:00:00 2001 From: John McQuah Date: Tue, 13 Feb 2024 15:16:20 +0000 Subject: [PATCH] prt-auf: respect non-whitespace separators when reading optional dependencies --- scripts/prt-auf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/prt-auf b/scripts/prt-auf index a45ba06..053862d 100755 --- a/scripts/prt-auf +++ b/scripts/prt-auf @@ -307,6 +307,9 @@ sub sync { push @drivers, $d; } closedir($drv); + if ($#drivers < 0) { + print("No valid ports drivers. Aborting sync.\n"); return; + } if ($#OPT_COLLECTIONS >= 0) { # Update selected collections foreach my $coll (@OPT_COLLECTIONS) { if (! glob("$sup_path/$coll.*")) { @@ -482,7 +485,7 @@ sub get_pkgfile_fields { } $Dependencies =~ s/,(| )/ /g; - $SoftDeps =~ s/,(| )/ /g; + $SoftDeps =~ s/,(| )/ /g; $SoftDeps =~ s/(\051|\050)//g; if (shift) { return $Name, $portpath, $Version, $Release, $descrip, $Dependencies, $url, $SoftDeps, $maintainer, $readme, $preInstall, $postInstall; @@ -760,6 +763,7 @@ sub deporder { # returns a sorted list of packages required. print "Dependency cycle found: "; foreach (@treewalk) { print "$_ => "; } print "$s\n"; + return; } push(@treewalk, $s); $imark{$s}=1;