mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
Add some checks for Subversion; minimum version required is 1.7, or adding
ports with subdirectories fails because of scattered .svn directories. Original issue reported by: netchild
This commit is contained in:
parent
491c771aa8
commit
3c8ccab1c6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311453
@ -113,6 +113,17 @@ $tmp = $tmp2 = $offset = 0;
|
||||
my $edit = "/usr/bin/vi";
|
||||
$edit = $ENV{EDITOR} if ($ENV{EDITOR} ne "");
|
||||
|
||||
# Check svn version
|
||||
my $svnversion = `svn --version --quiet 2>/dev/null`;
|
||||
chomp $svnversion;
|
||||
if ($svnversion eq "") {
|
||||
errx(1, "Subversion binary not found in \$PATH, aborting.");
|
||||
}
|
||||
my @svnversion = split(/\./, $svnversion);
|
||||
if ($svnversion[0] == 1 && $svnversion[1] < 7) {
|
||||
errx(1, "minimum Subversion version of 1.7 not met, aborting.");
|
||||
}
|
||||
|
||||
# stuff that always happens when we start
|
||||
BEGIN {
|
||||
$tmpdir=`mktemp -d -t ap`;
|
||||
|
Loading…
Reference in New Issue
Block a user