소스 검색

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

Guillem Jover 16 년 전
부모
커밋
0a85d64a50
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);