Browse Source

updates

r35
keep-around/c8703c509368e1805e513d61f98a9d17d2cdd9cc
Joey Hess 22 years ago
parent
commit
a40e5b2e18
  1. 4
      Makefile
  2. 2
      TODO
  3. 12
      main-menu.c

4
Makefile

@ -10,7 +10,9 @@ $(BIN): $(OBJS)
demo: $(BIN)
/usr/share/debconf/frontend ./$(BIN)
strip: $(BIN)
# Size optimized and stripped binary target.
small: CFLAGS=-Os $(CFLAGS)
small: clean $(BIN)
strip --remove-section=.comment --remove-section=.note \
--strip-unneeded $(BIN)

2
TODO

@ -1,5 +1,3 @@
* Handle processing debconf's return codes and getting the textual return
value.
* Once something is picked from the menu, (re)configure its package (and
first configure everything its package depends on).
* Figure out how to handle configuring only one virtual package (pick off

12
main-menu.c

@ -129,16 +129,20 @@ struct package_t *show_main_menu(struct package_t *packages) {
if (p->installer_menu_item && strcmp(p->description, s) == 0)
return p;
}
return 0; // should never happen
return 0;
}
void do_menu_item(struct package_t *p) {
}
int main (int argc, char **argv) {
struct package_t *p, *packages;
packages = status_read();
p=show_main_menu(packages);
fprintf(stderr, "%s\n", p->package);
while ((p=show_main_menu(packages))) {
do_menu_item(p);
packages = status_read();
}
return(0);
}

Loading…
Cancel
Save