Browse Source

Update the package_t structures when configuring packages so packages won't be configured multiple times

r1181
keep-around/c8703c509368e1805e513d61f98a9d17d2cdd9cc
Martin Sjögren 21 years ago
parent
commit
dba72dc212
  1. 2
      debian/changelog
  2. 2
      main-menu.c

2
debian/changelog

@ -3,6 +3,8 @@ main-menu (0.016) unstable; urgency=low
* NOT RELEASED YET
* Martin Sjögren
- Use libd-i2 with multiple provides
- Update the package_t structures when configuring packages so packages
won't be configured multiple times
* Convert to po-debconf, set Build-Depends: debhelper (>= 4.1.13)
to ensure that generated templates are right, and set output encoding
to UTF-8.

2
main-menu.c

@ -308,6 +308,7 @@ static int satisfy_virtual(struct package_t *p) {
asprintf(&configcommand, DPKG_CONFIGURE_COMMAND " %s", p->package);
ret = SYSTEM(configcommand);
free(configcommand);
p->status = (ret == 0) ? installed : half_configured;
return !ret;
}
@ -355,6 +356,7 @@ config_package(struct package_t *p) {
asprintf(&configcommand, DPKG_CONFIGURE_COMMAND " %s", p->package);
ret = SYSTEM(configcommand);
free(configcommand);
p->status = (ret == 0) ? installed : half_configured;
return !ret;
}

Loading…
Cancel
Save