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

dpkg-deb: Rename pkg_get_pathname() to gen_dest_pathname_from_pkg()

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

+ 3 - 3
dpkg-deb/build.c

@@ -405,12 +405,12 @@ gen_dest_pathname(const char *dir, const char *dest)
 }
 
 /**
- * Generate the pathname for the to-be-built package.
+ * Generate the pathname for the destination binary package from control file.
  *
  * @return The pathname for the package being built.
  */
 static char *
-pkg_get_pathname(const char *dir, struct pkginfo *pkg)
+gen_dest_pathname_from_pkg(const char *dir, struct pkginfo *pkg)
 {
   char *path;
   const char *versionstring, *arch_sep;
@@ -460,7 +460,7 @@ do_build(const char *const *argv)
 
     pkg = check_new_pkg(dir);
     if (debar == NULL)
-      debar = pkg_get_pathname(dest, pkg);
+      debar = gen_dest_pathname_from_pkg(dest, pkg);
     printf(_("dpkg-deb: building package `%s' in `%s'.\n"),
            pkg->set->name, debar);
   }