perform.c (1550) | perform.c (3198) |
---|---|
1#ifndef lint | 1#ifndef lint |
2static const char *rcsid = "$Id: perform.c,v 1.3 1993/10/08 01:19:35 jkh Exp $"; | 2static const char *rcsid = "$Id: perform.c,v 1.4 1994/05/25 18:00:02 asami Exp $"; |
3#endif 4 5/* 6 * FreeBSD install - a package for the installation and maintainance 7 * of non-core utilities. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 84 unchanged lines hidden (view full) --- 95 if (vsystem("./%s %s DEINSTALL", DEINSTALL_FNAME, pkg)) { 96 whinge("De-Install script returned error status."); 97 return 1; 98 } 99 } 100 } 101 if (chdir(home) == FAIL) 102 barf("Toto! This doesn't look like Kansas anymore!"); | 3#endif 4 5/* 6 * FreeBSD install - a package for the installation and maintainance 7 * of non-core utilities. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 84 unchanged lines hidden (view full) --- 95 if (vsystem("./%s %s DEINSTALL", DEINSTALL_FNAME, pkg)) { 96 whinge("De-Install script returned error status."); 97 return 1; 98 } 99 } 100 } 101 if (chdir(home) == FAIL) 102 barf("Toto! This doesn't look like Kansas anymore!"); |
103 delete_package(FALSE, &Plist); 104 if (!Fake && vsystem("%s -r %s", REMOVE_CMD, LogDir)) { | 103 if (!Fake && delete_package(FALSE, &Plist) != FAIL && 104 vsystem("%s -r %s", REMOVE_CMD, LogDir)) { |
105 whinge("Couldn't remove log entry in %s, de-install failed.", LogDir); 106 return 1; 107 } 108 return 0; 109} 110 111static void 112sanity_check(char *pkg) 113{ 114 if (!fexists(CONTENTS_FNAME)) 115 barf("Installed package %s has no %s file!", pkg, CONTENTS_FNAME); 116} 117 118void 119cleanup(int sig) 120{ 121 /* Nothing to do */ 122} | 105 whinge("Couldn't remove log entry in %s, de-install failed.", LogDir); 106 return 1; 107 } 108 return 0; 109} 110 111static void 112sanity_check(char *pkg) 113{ 114 if (!fexists(CONTENTS_FNAME)) 115 barf("Installed package %s has no %s file!", pkg, CONTENTS_FNAME); 116} 117 118void 119cleanup(int sig) 120{ 121 /* Nothing to do */ 122} |