summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkglist2preseed4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkglist2preseed b/bin/pkglist2preseed
index b0d7902..0ff94c5 100755
--- a/bin/pkglist2preseed
+++ b/bin/pkglist2preseed
@@ -32,9 +32,9 @@ foreach (@tweakfiles) {
grep { chomp } @tweaklines;
grep { s/^[#]{1} (.*)/# * $1/ } @tweaklines;
grep { s/^[#]{2} (.*)/# $1/ } @tweaklines;
+grep { /^[^#]/ and s/(?<!;)$/ / } @tweaklines;
$tweakdesc = join "\n", grep { /^[#] / } @tweaklines;
-$tweaklist = join ";", grep { s/^(?!#)\s*(.+)/$1/ } @tweaklines;
-$tweaklist .= ';';
+$tweaklist = join "\\\n", grep { /^[^#]/ } @tweaklines;
my $pkglist = join( ' ', @pkg );