Browse Source

- Use X_SAVE.

- Fix backup.

r17707
keep-around/c8703c509368e1805e513d61f98a9d17d2cdd9cc
Bastian Blank 18 years ago
parent
commit
8ce4cea273
  1. 5
      TODO
  2. 8
      debian/changelog
  3. 3
      main-menu.c
  4. 14
      main-menu.h

5
TODO

@ -1,5 +0,0 @@
* Several of the functions in main_menu return 1 for success, 0 for
failure. They should be changed to return as system() or an enum, so
menu items that return 10 to signal backup work. Since it's kinda hard to
fix these (I tried and failed), we currently have the nasty global
last_item_backup.

8
debian/changelog

@ -1,3 +1,11 @@
main-menu (0.071) UNRELEASED; urgency=low
* Bastian Blank
- Use X_SAVE.
- Fix backup.
-- Bastian Blank <waldi@debian.org> Sat, 10 Jul 2004 22:26:58 +0200
main-menu (0.070) unstable; urgency=low
* Bastian Blank

3
main-menu.c

@ -577,6 +577,7 @@ int main (int argc __attribute__ ((unused)), char **argv) {
break;
case EXIT_BACKUP:
di_log(DI_LOG_LEVEL_INFO, "Menu item '%s' succeeded but requested to be left unconfigured.", p->p.package);
modify_debconf_priority(LOWER);
break;
case EXIT_QUIT:
case EXIT_RESTART:
@ -594,7 +595,7 @@ int main (int argc __attribute__ ((unused)), char **argv) {
packages = di_system_packages_status_read_file(DI_SYSTEM_DPKG_STATUSFILE, allocator);
/* tell cdebconf to save the database */
kill(getppid(), SIGUSR1);
debconf->command(debconf, "X_SAVE", NULL);
}
return EXIT_FAILURE;

14
main-menu.h

@ -17,7 +17,13 @@
#define NEVERDEFAULT 900
#define EXIT_OK 0
#define EXIT_BACKUP 10
#define EXIT_QUIT 11
#define EXIT_RESTART 12
enum
{
EXIT_OK = 0,
EXIT_BACKUP = 10,
EXIT_QUIT = 11,
EXIT_RESTART = 12,
};
/* vim: noexpandtab sw=8
*/

Loading…
Cancel
Save