Kaynağa Gözat

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

Guillem Jover 11 yıl önce
ebeveyn
işleme
59c4fca8bf
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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.
  * @return The pkginfo struct from the parsed control file.
  */
  */
 static struct pkginfo *
 static struct pkginfo *
-check_new_pkg(const char *dir)
+check_control_area(const char *dir)
 {
 {
   struct pkginfo *pkg;
   struct pkginfo *pkg;
   char *controlfile;
   char *controlfile;
@@ -458,7 +458,7 @@ do_build(const char *const *argv)
   } else {
   } else {
     struct pkginfo *pkg;
     struct pkginfo *pkg;
 
 
-    pkg = check_new_pkg(dir);
+    pkg = check_control_area(dir);
     if (debar == NULL)
     if (debar == NULL)
       debar = gen_dest_pathname_from_pkg(dest, pkg);
       debar = gen_dest_pathname_from_pkg(dest, pkg);
     printf(_("dpkg-deb: building package `%s' in `%s'.\n"),
     printf(_("dpkg-deb: building package `%s' in `%s'.\n"),