1#ifndef lint 2static const char rcsid[] = |
3 "$FreeBSD: head/usr.sbin/pkg_install/create/perform.c 84750 2001-10-10 08:21:41Z 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 --- 146 unchanged lines hidden (view full) --- 158 add_plist_top(&plist, PLIST_CWD, Prefix); 159 /* 160 * Run down the list and see if we've named it, if not stick in a name 161 * at the top. 162 */ 163 if (find_plist(&plist, PLIST_NAME) == NULL) 164 add_plist_top(&plist, PLIST_NAME, basename(pkg)); 165 |
166 if (asprintf(&cp, "PKG_FORMAT_REVISION:%d.%d", PLIST_FMT_VER_MAJOR, 167 PLIST_FMT_VER_MINOR) == -1) { 168 errx(2, "%s: asprintf() failed", __FUNCTION__); 169 } 170 add_plist_top(&plist, PLIST_COMMENT, cp); 171 free(cp); 172 |
173 /* 174 * We're just here for to dump out a revised plist for the FreeBSD ports 175 * hack. It's not a real create in progress. 176 */ 177 if (PlistOnly) { 178 check_list(home, &plist); 179 write_plist(&plist, stdout); 180 exit(0); --- 261 unchanged lines hidden --- |