Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Stifler6996/apt-mirror.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Georgiev <chutz@gg3.net>2022-05-15 08:57:05 +0300
committerGitHub <noreply@github.com>2022-05-15 08:57:05 +0300
commit3a0de579bbb0ef8daccca8a5d57440338aab02e2 (patch)
tree4aae96e5798f0d4cb0b5297c7043b09c870c3bf9
parent97352eb84896c15bd4396d956925370fc97cd186 (diff)
Config file mirror lines sensitive to spacing within sections (#17)
Allows users to "prettyify" their configs to make them more readable. fixes #13
-rwxr-xr-xapt-mirror2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-mirror b/apt-mirror
index 3e63028..72a21b9 100755
--- a/apt-mirror
+++ b/apt-mirror
@@ -289,7 +289,7 @@ sub download_urls
sub parse_config_line
{
- my $pattern_deb_line = qr/^[\t ]*(?<type>deb-src|deb)(?:-(?<arch>[\w\-]+))?[\t ]+(?:\[(?<options>[^\]]+)\][\t ]+)?(?<uri>[^\s]+)[\t ]?(?<components>.*)$/;
+ my $pattern_deb_line = qr/^[\t ]*(?<type>deb-src|deb)(?:-(?<arch>[\w\-]+))?[\t ]+(?:\[(?<options>[^\]]+)\][\t ]+)?(?<uri>[^\s]+)[\t ]+(?<components>.*)$/;
my $line = $_;
my %config;
if ( $line =~ $pattern_deb_line ) {