]> git.decadent.org.uk Git - dak.git/commitdiff
Do not delete files starting with a dot.
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 21 Aug 2015 06:56:52 +0000 (08:56 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 21 Aug 2015 06:56:52 +0000 (08:56 +0200)
28903fa31f90164d3ea784b31be0e9a19fc5fd8c tried to allow temporary
files used by rsync, however these started with a dot and were still
deleted.

tools/debianqueued-0.9/debianqueued

index fb91ff8be4b578b77726850f496ae4381ca33043..c877aa5c74e23dfe46d28d7d5b199f5e7480a737 100755 (executable)
@@ -67,7 +67,7 @@ package main;
 ($main::hostname, undef, undef, undef, undef) = gethostbyname(hostname());
 
 my %packages = ();
-my $re_file_safe_prefix = qr/\A([a-zA-Z0-9][a-zA-Z0-9_.:~+-]*)/s;
+my $re_file_safe_prefix = qr/\A([a-zA-Z0-9.][a-zA-Z0-9_.:~+-]*)/s;
 my $re_file_safe = qr/$re_file_safe_prefix\z/s;
 
 # extract -r and -k args