Browse Source

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

Guillem Jover 11 years ago
parent
commit
b284e7dc76
1 changed files with 3 additions and 3 deletions
  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.
  * @return The pathname for the package being built.
  */
  */
 static char *
 static char *
-pkg_get_pathname(const char *dir, struct pkginfo *pkg)
+gen_dest_pathname_from_pkg(const char *dir, struct pkginfo *pkg)
 {
 {
   char *path;
   char *path;
   const char *versionstring, *arch_sep;
   const char *versionstring, *arch_sep;
@@ -460,7 +460,7 @@ do_build(const char *const *argv)
 
 
     pkg = check_new_pkg(dir);
     pkg = check_new_pkg(dir);
     if (debar == NULL)
     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"),
     printf(_("dpkg-deb: building package `%s' in `%s'.\n"),
            pkg->set->name, debar);
            pkg->set->name, debar);
   }
   }