[devscripts] 01/01: origtargz: Also preserve _darcs
Joachim Breitner
nomeata at moszumanska.debian.org
Fri May 9 08:08:32 UTC 2014
This is an automated email from the git hooks/post-receive script.
nomeata pushed a commit to branch master
in repository devscripts.
commit d1ea98fdf48382aefb7e4def9c0876cf7a8c0570
Author: Joachim Breitner <nomeata at debian.org>
Date: Fri May 9 09:39:53 2014 +0200
origtargz: Also preserve _darcs
---
scripts/origtargz.pl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/origtargz.pl b/scripts/origtargz.pl
index e19ff69..c8f171c 100755
--- a/scripts/origtargz.pl
+++ b/scripts/origtargz.pl
@@ -106,7 +106,8 @@ When found, a hardlink is created if possible, otherwise a symlink.
Unpack the downloaded orig tarball to the current directory, replacing
everything except the debian directory. Existing files are removed, except for
F<debian/> and VCS files. Preserved are: F<.bzr>, F<.bzrignore>,
-F<.bzr-builddeb>, F<.git>, F<.gitignore>, F<.hg>, F<.hgignore>, and F<.svn>.
+F<.bzr-builddeb>, F<.git>, F<.gitignore>, F<.hg>, F<.hgignore>, F<_darcs> and
+F<.svn>.
=over
@@ -308,7 +309,7 @@ sub clean_checkout ()
while (my $file = readdir DIR) {
next if ($file eq '.' or $file eq '..');
next if ($file eq 'debian');
- next if ($file =~ /^(\.bzr|\.git|\.hg|\.svn|CVS)$/);
+ next if ($file =~ /^(\.bzr|\.git|\.hg|\.svn|CVS|_darcs)$/);
if ($file =~ /^(\.bzr(ignore|-builddeb)|\.gitignore|\.hgignore)$/) {
print "Notice: not deleting $file (likely to come from VCS checkout)\n";
next;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list