PERFORCE change 163762 for review

David Forsythe dforsyth at FreeBSD.org
Mon Jun 8 05:28:21 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=163762

Change 163762 by dforsyth at squirrel on 2009/06/08 05:27:51

	Base PKGNAME on a packages path, rather than the name in its plist.

Affected files ...

.. //depot/projects/soc2009/dforsyth_libpkg/pkg_info/main.c#5 edit

Differences ...

==== //depot/projects/soc2009/dforsyth_libpkg/pkg_info/main.c#5 (text+ko) ====

@@ -105,7 +105,8 @@
 	/* Just print the basic PKGNAME COMMENT scheme right now.  Other
 	 * information isn't collected by the library yet. */
 	if (!opt_show_all_info)
-		printf("%s %s\n", pkg_name(p), pkg_comment(p));
+		/* Use pkg_ident because old pkg_info goes by directory name. */
+		printf("%s %s\n", pkg_ident(p), pkg_comment(p));
 	else {
 		/* Testing plist interaction. */
 		printf("%s:\n", pkg_name(p));


More information about the p4-projects mailing list