Просмотр исходного кода

dpkg: Rename hasdirectoryconffiles() to dir_has_conffiles()

Guillem Jover лет назад: 15
Родитель
Сommit
fda21f829b
3 измененных файлов с 6 добавлено и 6 удалено
  1. 3 3
      src/help.c
  2. 1 1
      src/main.h
  3. 2 2
      src/remove.c

+ 3 - 3
src/help.c

@@ -465,12 +465,12 @@ void clear_istobes(void) {
  * false otherwise.
  */
 bool
-hasdirectoryconffiles(struct filenamenode *file, struct pkginfo *pkg)
+dir_has_conffiles(struct filenamenode *file, struct pkginfo *pkg)
 {
   struct conffile *conff;
   size_t namelen;
 
-  debug(dbg_veryverbose, "hasdirectoryconffiles `%s' (from %s)", file->name,
+  debug(dbg_veryverbose, "dir_has_conffiles '%s' (from %s)", file->name,
 	pkg->name);
   namelen = strlen(file->name);
   for (conff= pkg->installed.conffiles; conff; conff= conff->next) {
@@ -481,7 +481,7 @@ hasdirectoryconffiles(struct filenamenode *file, struct pkginfo *pkg)
 	return true;
       }
   }
-  debug(dbg_veryverbose, "hasdirectoryconffiles no");
+  debug(dbg_veryverbose, "dir_has_conffiles no");
   return false;
 }
 

+ 1 - 1
src/main.h

@@ -249,7 +249,7 @@ void post_postinst_tasks(struct pkginfo *pkg, enum pkgstatus new_status);
 
 void clear_istobes(void);
 bool isdirectoryinuse(struct filenamenode *namenode, struct pkginfo *pkg);
-bool hasdirectoryconffiles(struct filenamenode *namenode, struct pkginfo *pkg);
+bool dir_has_conffiles(struct filenamenode *namenode, struct pkginfo *pkg);
 
 void log_action(const char *action, struct pkginfo *pkg);
 

+ 2 - 2
src/remove.c

@@ -253,7 +253,7 @@ removal_bulk_remove_files(struct pkginfo *pkg)
         /* Only delete a directory or a link to one if we're the only
          * package which uses it. Other files should only be listed
          * in this package (but we don't check). */
-	if (hasdirectoryconffiles(namenode,pkg)) {
+        if (dir_has_conffiles(namenode, pkg)) {
 	  push_leftover(&leftover,namenode);
 	  continue;
 	}
@@ -332,7 +332,7 @@ static void removal_bulk_remove_leftover_dirs(struct pkginfo *pkg) {
       /* Only delete a directory or a link to one if we're the only
        * package which uses it. Other files should only be listed
        * in this package (but we don't check). */
-      if (hasdirectoryconffiles(namenode,pkg)) {
+      if (dir_has_conffiles(namenode, pkg)) {
 	push_leftover(&leftover,namenode);
 	continue;
       }