Browse Source

move the 900 constant to the .h file

r10130
keep-around/c8703c509368e1805e513d61f98a9d17d2cdd9cc
Joey Hess 19 years ago
parent
commit
e422fb6ec2
  1. 2
      debian/changelog
  2. 6
      main-menu.c
  3. 1
      main-menu.h

2
debian/changelog

@ -6,6 +6,8 @@ main-menu (0.059) unstable; urgency=low
than 900 (any higher are the packages that never get defaulted
to.), closes: #224633
- Add self to Uploaders.
* Joey Hess
- Move the 900 constant out the the .h.
-- Joshua Kwan <joshk@triplehelix.org> Mon, 8 Mar 2004 18:27:12 -0800

6
main-menu.c

@ -109,7 +109,7 @@ get_default_menu_item(di_slist *list)
!isinstallable(p))
continue;
if (p->installer_menu_item < last_successful_item &&
p->installer_menu_item < 900)
p->installer_menu_item < NEVERDEFAULT)
continue;
/* If menutest says this item should be default, make it so */
if (!isdefault(p))
@ -575,13 +575,13 @@ int main (int argc __attribute__ ((unused)), char **argv) {
/* Success */
modify_debconf_priority(RAISE);
if (p->installer_menu_item < 900)
if (p->installer_menu_item < NEVERDEFAULT)
{
last_successful_item = p->installer_menu_item;
di_log(DI_LOG_LEVEL_DEBUG, "Installed package '%s', raising last_successful_item to %d", p->p.package, p->installer_menu_item);
}
else
di_log(DI_LOG_LEVEL_DEBUG, "Installed package '%s' but no raise since %d >= 900", p->p.package, p->installer_menu_item);
di_log(DI_LOG_LEVEL_DEBUG, "Installed package '%s' but no raise since %d >= %i", p->p.package, p->installer_menu_item, NEVERDEFAULT);
}
di_packages_free (packages);

1
main-menu.h

@ -14,3 +14,4 @@
#include <debian-installer.h>
#define NEVERDEFAULT 900

Loading…
Cancel
Save