Deleted Added
full compact
show.c (67429) show.c (67454)
1#ifndef lint
2static const char rcsid[] =
1#ifndef lint
2static const char rcsid[] =
3 "$FreeBSD: head/usr.sbin/pkg_install/info/show.c 67429 2000-10-22 09:53:27Z jkh $";
3 "$FreeBSD: head/usr.sbin/pkg_install/info/show.c 67454 2000-10-23 07:01:31Z sobomax $";
4#endif
5
6/*
7 * FreeBSD install - a package for the installation and maintainance
8 * of non-core utilities.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions

--- 239 unchanged lines hidden (view full) ---

251 break;
252 }
253 }
254 if (!Quiet)
255 printf("%lu\t(%s)\n", howmany(size, blksize), descr);
256 else
257 printf("%lu\n", size);
258}
4#endif
5
6/*
7 * FreeBSD install - a package for the installation and maintainance
8 * of non-core utilities.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions

--- 239 unchanged lines hidden (view full) ---

251 break;
252 }
253 }
254 if (!Quiet)
255 printf("%lu\t(%s)\n", howmany(size, blksize), descr);
256 else
257 printf("%lu\n", size);
258}
259
260/* Show an "origin" path (usually category/portname) */
261void
262show_origin(char *title, Package *plist)
263{
264 PackingList p;
265
266 if (!Quiet)
267 printf("%s%s", InfoPrefix, title);
268 for (p = plist->head; p != NULL; p = p->next)
269 if (p->type == PLIST_COMMENT && !strncmp(p->name, "ORIGIN:", 7)) {
270 printf("%s\n", p->name + 7);
271 break;
272 }
273}