diff options
Diffstat (limited to 'usr.sbin/pkg_install/create/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/create/perform.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index 634188b..91102a0 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: perform.c,v 1.4 1993/08/26 08:12:52 jkh Exp $"; +static const char *rcsid = "$Id: perform.c,v 1.5 1993/09/04 05:06:33 jkh Exp $"; #endif /* @@ -62,14 +62,19 @@ pkg_perform(char **pkgs) else suffix = "tgz"; - /* Register the package name (base part) */ - add_plist(&plist, PLIST_NAME, pkg); if (Prefix) add_plist(&plist, PLIST_CWD, Prefix); /* Slurp in the packing list */ read_plist(&plist, pkg_in); + /* + * Run down the list and see if we've named it, if not stick in a name + * at the top. + */ + if (!in_plist(&plist, PLIST_NAME)) + add_plist_top(&plist, PLIST_NAME, pkg); + /* Make a directory to stomp around in */ home = make_playpen(); signal(SIGINT, cleanup); |