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:
parent
194a666749
commit
544cd27071
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user