Rename installX11package() to installPackage() and tweak it so that it

can be used to install any arbitrary package.

Approved by:	re
This commit is contained in:
John Baldwin 2002-12-03 19:36:12 +00:00
parent 194a666749
commit 544cd27071
4 changed files with 8 additions and 12 deletions

View File

@ -842,20 +842,18 @@ installFixupBin(dialogMenuItem *self)
return DITEM_SUCCESS | DITEM_RESTORE;
}
#ifdef X_AS_PKG
int
installX11package(dialogMenuItem *self)
installPackage(dialogMenuItem *self, char *desc, char *package)
{
WINDOW *w = savescr();
int i;
dialog_clear_norefresh();
msgNotify("Installing XFree86 package...");
i = package_add("XFree86-4");
msgNotify("Installing %s package...", desc);
i = package_add(package);
restorescr(w);
return i;
}
#endif
/* Fix side-effects from the the XFree86 installation */
int

View File

@ -642,7 +642,7 @@ extern int installUpgrade(dialogMenuItem *self);
extern int installFilesystems(dialogMenuItem *self);
extern int installVarDefaults(dialogMenuItem *self);
extern void installEnvironment(void);
extern int installX11package(dialogMenuItem *self);
extern int installPackage(dialogMenuItem *self, char *package, char *desc);
extern Boolean copySelf(void);
/* kget.c */

View File

@ -842,20 +842,18 @@ installFixupBin(dialogMenuItem *self)
return DITEM_SUCCESS | DITEM_RESTORE;
}
#ifdef X_AS_PKG
int
installX11package(dialogMenuItem *self)
installPackage(dialogMenuItem *self, char *desc, char *package)
{
WINDOW *w = savescr();
int i;
dialog_clear_norefresh();
msgNotify("Installing XFree86 package...");
i = package_add("XFree86-4");
msgNotify("Installing %s package...", desc);
i = package_add(package);
restorescr(w);
return i;
}
#endif
/* Fix side-effects from the the XFree86 installation */
int

View File

@ -642,7 +642,7 @@ extern int installUpgrade(dialogMenuItem *self);
extern int installFilesystems(dialogMenuItem *self);
extern int installVarDefaults(dialogMenuItem *self);
extern void installEnvironment(void);
extern int installX11package(dialogMenuItem *self);
extern int installPackage(dialogMenuItem *self, char *package, char *desc);
extern Boolean copySelf(void);
/* kget.c */