]> err.no Git - dpkg/commitdiff
Do not print repeated debug information
authorGuillem Jover <guillem@debian.org>
Sat, 28 Jun 2008 08:48:23 +0000 (11:48 +0300)
committerGuillem Jover <guillem@debian.org>
Sun, 20 Jul 2008 14:34:01 +0000 (17:34 +0300)
src/filters.c

index b986f02373a28da8bb8b76009fd4baf7f28470f7..97be941954d81d366894c2bde5950dc42719dfbd 100644 (file)
@@ -144,6 +144,10 @@ do_filter_should_skip(struct TarInfo *ti)
        }
 
        if (remove) {
+               debug(dbg_eachfile,
+                     "tarobject seeing if '%s' needs to be reincluded",
+                     &ti->Name[1]);
+
                for (f = filters; f != NULL; f = f->next) {
                        char *pattern;
 
@@ -151,9 +155,6 @@ do_filter_should_skip(struct TarInfo *ti)
                        strcpy(pattern, &ti->Name[1]);
                        strcat(pattern, "*");
 
-                       debug(dbg_eachfile,
-                             "tarobject seeing if '%s' needs to be reincluded",
-                             &ti->Name[1]);
                        if ((f->positive == 1) &&
                            (ti->Type == Directory) &&
                            (fnmatch(pattern, f->filterstring, 0) == 0)) {