diff options
author | jkh <jkh@FreeBSD.org> | 1999-04-27 14:33:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-04-27 14:33:29 +0000 |
commit | 19ffa5eea896737615fbb68cbd6bbcbac4ec4918 (patch) | |
tree | a760591f5f1b8bbdeda85d3001444691a1b1c059 /usr.sbin/sysinstall/package.c | |
parent | c85ea5017c00c71172e6cfb5bd1cd171837b5812 (diff) | |
download | FreeBSD-src-19ffa5eea896737615fbb68cbd6bbcbac4ec4918.zip FreeBSD-src-19ffa5eea896737615fbb68cbd6bbcbac4ec4918.tar.gz |
o Make package matching for specific package loading use the Latest/
feature of packages now so that no version info is embedded.
o Add a default X desktop menu offering afterstep, enlightenment, KDE, GNOME
and Windowmaker desktops instead of the boring twm(1) based one if the
user so chooses. This will require a little testing.
Diffstat (limited to 'usr.sbin/sysinstall/package.c')
-rw-r--r-- | usr.sbin/sysinstall/package.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/package.c b/usr.sbin/sysinstall/package.c index a1991a2..990064c 100644 --- a/usr.sbin/sysinstall/package.c +++ b/usr.sbin/sysinstall/package.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: package.c,v 1.65 1997/10/15 04:37:16 jkh Exp $ + * $Id: package.c,v 1.66 1999/02/05 22:15:51 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -122,7 +122,12 @@ package_extract(Device *dev, char *name, Boolean depended) Mkdir(variable_get(VAR_PKG_TMPDIR)); vsystem("chmod 1777 %s", variable_get(VAR_PKG_TMPDIR)); - if (!index(name, '/')) + if (name[0] == '@') { + /* @ at the beginning of the package name means "get latest" */ + name++; + sprintf(path, "packages/Latest/%s.tgz", name); + } + else if (!index(name, '/')) sprintf(path, "packages/All/%s%s", name, strstr(name, ".tgz") ? "" : ".tgz"); else sprintf(path, "%s%s", name, strstr(name, ".tgz") ? "" : ".tgz"); |