X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/e2ccc21918b8a4bdfecc4a8e078f36d8b1b164a0..269aa9ecd3cb6d6ef069c610ef7c4130f2271998:/mr?ds=sidebyside diff --git a/mr b/mr index d3c79ac..3a168d1 100755 --- a/mr +++ b/mr @@ -946,7 +946,10 @@ sub repodir { return $ret; } -# figure out which repos to act on +# Figure out which repos to act on. Returns a list of array refs +# in the format: +# +# [ "$full_repo_path/", "$mr_config_path/", $section_header ] sub selectrepos { my @repos; foreach my $repo (repolist()) { @@ -1298,7 +1301,7 @@ sub loadconfig { if ($parameter eq 'chain' && length $dir && $section ne "DEFAULT") { my $chaindir="$section"; - if ($chaindir !~ m!/!) { + if ($chaindir !~ m!^/!) { $chaindir=$dir.$chaindir; } if (-e "$chaindir/.mrconfig") {