[Frugalware-darcs] setup-current: select: new function: selpkg_confirm()

VMiklos vmiklos at frugalware.org
Thu Mar 16 18:07:46 CET 2006


[select: new function: selpkg_confirm()
VMiklos <vmiklos at frugalware.org>**20051115182608] {
hunk ./src/plugins/select.c 183
+int selpkg_confirm(void)
+{
+	int ret;
+	dialog_vars.defaultno=1;
+	ret = dialog_yesno(_("Use expert menus?"),
+		_("If you like, you may select your packages from expert menus."
+		"Where the normal menu shows a choice like 'C compiler system',"
+		"the expert menus show you 'C libs', 'C compiler', 'C include"
+		"files', etc - each individual package. Obviously, you should"
+		"know what you're doing if you use the expert menus since it's"
+		"possible to skip packages that are crucial to the functioning"
+		"of a subsystem. Choose 'no' for using normal menus that select"
+		"groups of packages, or choose 'yes' for using expert menus"
+		"with a switch for each package."), 0, 0);
+	dialog_vars.defaultno=0;
+	if(ret==DLG_EXIT_OK)
+		return(1);
+	else
+		return(0);
+}
+
hunk ./src/plugins/select.c 274
-	int i;
+	int i, selpkg;
hunk ./src/plugins/select.c 279
-	//dialog_msgbox("bash", pkgdesc("bash"), 0, 0, 1);
-	list = selcat(1);
+	selpkg = selpkg_confirm();
+	list = selcat(0);
hunk ./src/plugins/select.c 284
+	if (selpkg)
+		printf("expert mode\n");
}


More information about the Frugalware-darcs mailing list