diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MGA/Advisories.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index d29d706..2d84aac 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -197,7 +197,8 @@ sub next_id { sub assign_id { my ($advname) = @_; - my $advfile = "$config->{advisories_dir}/$advname.adv"; + chdir($config->{advisories_dir}); + my $advfile = "$advname.adv"; $advfile =~ s/\.adv\.adv$/.adv/; if ( ! -f $advfile ) { @@ -412,7 +413,7 @@ sub assign_id { } } $message .= ': '.join(', ', @pkgs); - $exitstatus = system(('svn', 'commit', '-q', '-m', $message, $advfile)); + $exitstatus = system('svn', 'commit', '-q', '-m', $message, $advfile); if (0 == $exitstatus) { print "✔\n"; } else { @@ -421,6 +422,7 @@ sub assign_id { } sub assign_ids { + chdir($config->{advisories_dir}); # Ensure users local repo is up to date my $exitstatus = system("svn up"); if ( 0 != $exitstatus ) { |