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

dpkg-deb: Rename check_new_pkg() to check_control_area()

Guillem Jover лет назад: 11
Родитель
Сommit
59c4fca8bf
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      dpkg-deb/build.c

+ 3 - 3
dpkg-deb/build.c

@@ -331,12 +331,12 @@ check_conffiles(const char *dir)
 }
 
 /**
- * Perform some sanity checks on the to-be-built package.
+ * Perform some sanity checks on the to-be-built package control area.
  *
  * @return The pkginfo struct from the parsed control file.
  */
 static struct pkginfo *
-check_new_pkg(const char *dir)
+check_control_area(const char *dir)
 {
   struct pkginfo *pkg;
   char *controlfile;
@@ -458,7 +458,7 @@ do_build(const char *const *argv)
   } else {
     struct pkginfo *pkg;
 
-    pkg = check_new_pkg(dir);
+    pkg = check_control_area(dir);
     if (debar == NULL)
       debar = gen_dest_pathname_from_pkg(dest, pkg);
     printf(_("dpkg-deb: building package `%s' in `%s'.\n"),