Package: svn-buildpackage
Version: 0.6.7
Severity: normal
Tags: patch

The --svn-ignore-new switch allows me to build a package even though
there are local changes, but svn-buildpackage ignores locally added
files and directories.

The --svn-ignore-new switch should ignore the fact that there are local
changes, but it should still include any newly added files and
directories when building a package.  (This is extremely useful for
testing.)

The attached patch accomplishes this for added files in version 0.6.7,
but I see that the way the list of files is generated now differs in
version 0.6.14 to use SVN::Client, so this may already be fixed.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages svn-buildpackage depends on:
ii  devscripts                    2.8.14     Scripts to make the life of a Debi
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 
ii  subversion                    1.1.4-2    advanced version control system (a
ii  subversion-tools              1.1.4-2    assorted tools related to Subversi

-- no debconf information
--- svn-buildpackage.orig       2005-04-21 13:17:45.000000000 -0500
+++ svn-buildpackage    2005-12-27 19:14:43.000000000 -0600
@@ -335,7 +335,8 @@
 print STDERR "Creating file list...\n" if $opt_verbose;
 open($stat, "svn status -v |");
 while(<$stat>) {
-   if(/^[^\?].*\d+\s+\d+\s+\S+\s+(.*)\n/) {
+   if(/^[^\?].*\d+\s+\d+\s+\S+\s+(.*)\n/
+      || ($opt_ignnew && /^A.*0\s+\?\s+\?\s+(.*)\n/)) {
       $_=$1;
       if ($_ ne ".") {
          if(-d $_) {

Reply via email to