[Piuparts-devel] Bug#589498: [PATCH 3/5] remove pre_upgrade_ hook scripts
Andreas Beckmann
debian at abeckmann.de
Fri Nov 11 11:22:38 UTC 2011
remove the pre_upgrade_ scripts, they can be replaced by
pre_install_ scripts that check for PIUPARTS_PHASE=upgrade
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
---
README.txt | 4 ----
piuparts.py | 4 ----
2 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/README.txt b/README.txt
index 5a0c16a..de9d344 100644
--- a/README.txt
+++ b/README.txt
@@ -187,10 +187,6 @@ to distinguish the cases.
'post_purge_' - after *purging* your package.
-'pre_upgrade_' - before *upgrading* your package, once the
-current version in the archive has been installed (this is done
-in the second test, "Installation, upgrade and purging test").
-
'pre_distupgrade_' - before *upgrading* the chroot to the *next
distribution*. The next distribution is available in the variable
PIUPARTS_DISTRIBUTION_NEXT.
diff --git a/piuparts.py b/piuparts.py
index feffca7..8dc1785 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1763,8 +1763,6 @@ def install_upgrade_test(chroot, root_info, selections, package_list, package_na
os.environ["PIUPARTS_PHASE"] = "install"
chroot.install_packages_by_name(package_names)
- chroot.run_scripts("pre_upgrade")
-
chroot.check_for_broken_symlinks()
# Then from the package files.
@@ -1870,8 +1868,6 @@ def install_and_upgrade_between_distros(filenames, packages):
chroot.run(["apt-get", "update"])
chroot.install_packages_by_name(packages)
- chroot.run_scripts("pre_upgrade")
-
chroot.check_for_no_processes()
os.environ["PIUPARTS_PHASE"] = "distupgrade"
--
1.7.7.1
More information about the Piuparts-devel
mailing list