Deleted Added
full compact
perform.c (84745) perform.c (84750)
1#ifndef lint
2static const char rcsid[] =
1#ifndef lint
2static const char rcsid[] =
3 "$FreeBSD: head/usr.sbin/pkg_install/create/perform.c 84745 2001-10-10 06:58:42Z sobomax $";
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
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
166 /*
167 * We're just here for to dump out a revised plist for the FreeBSD ports
168 * hack. It's not a real create in progress.
169 */
170 if (PlistOnly) {
171 check_list(home, &plist);
172 write_plist(&plist, stdout);
173 exit(0);

--- 261 unchanged lines hidden ---
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 ---