perform.c (228990) | perform.c (240682) |
---|---|
1/* 2 * FreeBSD install - a package for the installation and maintenance 3 * of non-core utilities. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 5 unchanged lines hidden (view full) --- 14 * Jordan K. Hubbard 15 * 23 Aug 1993 16 * 17 * This is the main body of the info module. 18 * 19 */ 20 21#include <sys/cdefs.h> | 1/* 2 * FreeBSD install - a package for the installation and maintenance 3 * of non-core utilities. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 5 unchanged lines hidden (view full) --- 14 * Jordan K. Hubbard 15 * 23 Aug 1993 16 * 17 * This is the main body of the info module. 18 * 19 */ 20 21#include <sys/cdefs.h> |
22__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/info/perform.c 228990 2011-12-30 10:58:14Z uqs $"); | 22__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/info/perform.c 240682 2012-09-18 22:09:23Z bapt $"); |
23 24#include "lib.h" 25#include "info.h" 26#include <err.h> 27#include <signal.h> 28 29static int pkg_do(char *); 30static int find_pkg(struct which_head *); --- 185 unchanged lines hidden (view full) --- 216 show_file("mtree file:\n", MTREE_FNAME); 217 if (Flags & SHOW_PREFIX) 218 show_plist("Prefix(s):\n", &plist, PLIST_CWD, FALSE); 219 if (Flags & SHOW_FILES) 220 show_files("Files:\n", &plist); 221 if ((Flags & SHOW_SIZE) && installed) 222 show_size("Package Size:\n", &plist); 223 if ((Flags & SHOW_CKSUM) && installed) | 23 24#include "lib.h" 25#include "info.h" 26#include <err.h> 27#include <signal.h> 28 29static int pkg_do(char *); 30static int find_pkg(struct which_head *); --- 185 unchanged lines hidden (view full) --- 216 show_file("mtree file:\n", MTREE_FNAME); 217 if (Flags & SHOW_PREFIX) 218 show_plist("Prefix(s):\n", &plist, PLIST_CWD, FALSE); 219 if (Flags & SHOW_FILES) 220 show_files("Files:\n", &plist); 221 if ((Flags & SHOW_SIZE) && installed) 222 show_size("Package Size:\n", &plist); 223 if ((Flags & SHOW_CKSUM) && installed) |
224 show_cksum("Mismatched Checksums:\n", &plist); | 224 code += show_cksum("Mismatched Checksums:\n", &plist); |
225 if (Flags & SHOW_ORIGIN) 226 show_origin("Origin:\n", &plist); 227 if (Flags & SHOW_FMTREV) 228 show_fmtrev("Packing list format revision:\n", &plist); 229 if (!Quiet) 230 puts(InfoPrefix); 231 } 232 free_plist(&plist); 233 bail: 234 leave_playpen(); 235 if (isTMP) 236 unlink(fname); | 225 if (Flags & SHOW_ORIGIN) 226 show_origin("Origin:\n", &plist); 227 if (Flags & SHOW_FMTREV) 228 show_fmtrev("Packing list format revision:\n", &plist); 229 if (!Quiet) 230 puts(InfoPrefix); 231 } 232 free_plist(&plist); 233 bail: 234 leave_playpen(); 235 if (isTMP) 236 unlink(fname); |
237 return code; | 237 return (code ? 1 : 0); |
238} 239 240void 241cleanup(int sig) 242{ 243 static int in_cleanup = 0; 244 245 if (!in_cleanup) { --- 231 unchanged lines hidden --- | 238} 239 240void 241cleanup(int sig) 242{ 243 static int in_cleanup = 0; 244 245 if (!in_cleanup) { --- 231 unchanged lines hidden --- |