Explorar o código

dpkg: Add a debug line when hashing on-disk files on refcounting

Guillem Jover %!s(int64=13) %!d(string=hai) anos
pai
achega
425d915bbe
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/archives.c

+ 3 - 1
src/archives.c

@@ -4,7 +4,7 @@
  *
  * Copyright © 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk>
  * Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
- * Copyright © 2007-2012 Guillem Jover <guillem@debian.org>
+ * Copyright © 2007-2013 Guillem Jover <guillem@debian.org>
  * Copyright © 2011 Linaro Limited
  * Copyright © 2011 Raphaël Hertzog <hertzog@debian.org>
  *
@@ -1044,6 +1044,8 @@ tarobject(void *ctx, struct tar_entry *ti)
   /* Compute the hash of the previous object, before we might replace it
    * with the new version on forced overwrites. */
   if (refcounting) {
+    debug(dbg_eachfiledetail, "tarobject hashing on-disk file '%s', refcounting",
+          fnamevb.buf);
     if (nifd->namenode->flags & fnnf_new_conff) {
       md5hash_prev_conffile(tc->pkg, oldhash, fnamenewvb.buf, nifd->namenode);
     } else if (S_ISREG(stab.st_mode)) {