Handle more drive fix situations in syncqt
Normalize paths that begin with <drive_letter>:/ as well. Task-number: QTBUG-30638 Change-Id: Icdc7ee9782a358771d06ae2500d32e59e6bbe866 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
1b289379dc
commit
a27877c8e9
@ -69,7 +69,7 @@ my $normalizePath_fixDrive = ($^O eq "msys" ? 1 : 0);
|
||||
sub normalizePath {
|
||||
my $s = shift;
|
||||
$$s =~ s=\\=/=g;
|
||||
if ($normalizePath_fixDrive && $$s =~ m,^/([a-zA-Z])/(.*),) {
|
||||
if ($normalizePath_fixDrive && ($$s =~ m,^/([a-zA-Z])/(.*), || $$s =~ m,^([a-zA-Z]):/(.*),)) {
|
||||
$$s = lc($1) . ":/$2";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user