|
|
@@ -3,7 +3,7 @@
|
|
|
* cleanup.c - cleanup functions, used when we need to unwind
|
|
|
*
|
|
|
* Copyright © 1995 Ian Jackson <ian@chiark.greenend.org.uk>
|
|
|
- * Copyright © 2007-2012 Guillem Jover <guillem@debian.org>
|
|
|
+ * Copyright © 2007-2014 Guillem Jover <guillem@debian.org>
|
|
|
*
|
|
|
* This is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
@@ -118,7 +118,7 @@ void cu_prermupgrade(int argc, void **argv) {
|
|
|
maintscript_postinst(pkg, "abort-upgrade",
|
|
|
versiondescribe(&pkg->available.version, vdew_nonambig),
|
|
|
NULL);
|
|
|
- pkg_clear_eflags(pkg, eflag_reinstreq);
|
|
|
+ pkg_clear_eflags(pkg, PKG_EFLAG_REINSTREQ);
|
|
|
post_postinst_tasks(pkg, stat_installed);
|
|
|
cleanup_pkg_failed--;
|
|
|
}
|
|
|
@@ -179,7 +179,7 @@ void cu_prerminfavour(int argc, void **argv) {
|
|
|
versiondescribe(&infavour->available.version,
|
|
|
vdew_nonambig),
|
|
|
NULL);
|
|
|
- pkg_clear_eflags(conflictor, eflag_reinstreq);
|
|
|
+ pkg_clear_eflags(conflictor, PKG_EFLAG_REINSTREQ);
|
|
|
post_postinst_tasks(conflictor, stat_installed);
|
|
|
cleanup_conflictor_failed--;
|
|
|
}
|
|
|
@@ -193,7 +193,7 @@ void cu_preinstverynew(int argc, void **argv) {
|
|
|
maintscript_new(pkg, POSTRMFILE, "post-removal", cidir, cidirrest,
|
|
|
"abort-install", NULL);
|
|
|
pkg_set_status(pkg, stat_notinstalled);
|
|
|
- pkg_clear_eflags(pkg, eflag_reinstreq);
|
|
|
+ pkg_clear_eflags(pkg, PKG_EFLAG_REINSTREQ);
|
|
|
pkgbin_blank(&pkg->installed);
|
|
|
modstatdb_note(pkg);
|
|
|
cleanup_pkg_failed--;
|
|
|
@@ -210,7 +210,7 @@ void cu_preinstnew(int argc, void **argv) {
|
|
|
versiondescribe(&pkg->installed.version, vdew_nonambig),
|
|
|
NULL);
|
|
|
pkg_set_status(pkg, stat_configfiles);
|
|
|
- pkg_clear_eflags(pkg, eflag_reinstreq);
|
|
|
+ pkg_clear_eflags(pkg, PKG_EFLAG_REINSTREQ);
|
|
|
modstatdb_note(pkg);
|
|
|
cleanup_pkg_failed--;
|
|
|
}
|
|
|
@@ -227,7 +227,7 @@ void cu_preinstupgrade(int argc, void **argv) {
|
|
|
versiondescribe(&pkg->installed.version, vdew_nonambig),
|
|
|
NULL);
|
|
|
pkg_set_status(pkg, *oldstatusp);
|
|
|
- pkg_clear_eflags(pkg, eflag_reinstreq);
|
|
|
+ pkg_clear_eflags(pkg, PKG_EFLAG_REINSTREQ);
|
|
|
modstatdb_note(pkg);
|
|
|
cleanup_pkg_failed--;
|
|
|
}
|
|
|
@@ -249,7 +249,7 @@ void cu_prermremove(int argc, void **argv) {
|
|
|
|
|
|
if (cleanup_pkg_failed++) return;
|
|
|
maintscript_postinst(pkg, "abort-remove", NULL);
|
|
|
- pkg_clear_eflags(pkg, eflag_reinstreq);
|
|
|
+ pkg_clear_eflags(pkg, PKG_EFLAG_REINSTREQ);
|
|
|
post_postinst_tasks(pkg, *oldpkgstatus);
|
|
|
cleanup_pkg_failed--;
|
|
|
}
|