Przeglądaj źródła

dpkg: Place deferred extract rename debug message closer to the action

Guillem Jover 16 lat temu
rodzic
commit
0a85d64a50
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/archives.c

+ 2 - 2
src/archives.c

@@ -848,8 +848,6 @@ tar_deferred_extract(struct fileinlist *files, struct pkginfo *pkg)
     if (!(cfile->namenode->flags & fnnf_deferred_rename))
       continue;
 
-    debug(dbg_eachfiledetail, "deferred extract needs rename");
-
     usenode = namenodetouse(cfile->namenode, pkg);
     usename = usenode->name + 1; /* Skip the leading '/'. */
 
@@ -873,6 +871,8 @@ tar_deferred_extract(struct fileinlist *files, struct pkginfo *pkg)
     }
 #endif
 
+    debug(dbg_eachfiledetail, "deferred extract needs rename");
+
     if (rename(fnamenewvb.buf, fnamevb.buf))
       ohshite(_("unable to install new version of `%.255s'"),
               cfile->namenode->name);