diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-03-17 14:10:11 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-03-17 14:10:11 +0200 |
commit | d89482a7c7777d379ab415ebba747b6af19babdb (patch) | |
tree | 086729e83518cbac0b829f6cb8d6e7054ebcead4 /lib/rpminstall.c | |
parent | 37543ee0405c38a9d54a12bf0d54698773a3933c (diff) | |
download | librpm-tizen-d89482a7c7777d379ab415ebba747b6af19babdb.tar.gz librpm-tizen-d89482a7c7777d379ab415ebba747b6af19babdb.tar.bz2 librpm-tizen-d89482a7c7777d379ab415ebba747b6af19babdb.zip |
Remove repackage support to finish off with rollback
The two main classes of rollback/repackage need are
1) Gimme back the previous version, this broke XYZ on my system.
This is better handled by downgrading to the previous version of original
package instead of repackaged garbage. We should maintain real package
(version) history somewhere.
2) Upgrade messed up my configuration.
Instead of repackaging everything we could be far more intelligent
wrt config files, stick them into real version control or at least have
hooks to do so.
RPMCALLBACK_REPACKAGE_* and RPMTRANS_FLAG_REPACKAGE definitions left around
to avoid needlessly breaking everybodys callbacks (for now)
Diffstat (limited to 'lib/rpminstall.c')
-rw-r--r-- | lib/rpminstall.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/lib/rpminstall.c b/lib/rpminstall.c index 38b22c0dc..d192b8258 100644 --- a/lib/rpminstall.c +++ b/lib/rpminstall.c @@ -167,40 +167,6 @@ void * rpmShowProgress(const void * arg, rpmcliProgressCurrent = 0; break; - case RPMCALLBACK_REPACKAGE_START: - rpmcliHashesCurrent = 0; - rpmcliProgressTotal = total; - rpmcliProgressCurrent = 0; - if (!(flags & INSTALL_LABEL)) - break; - if (flags & INSTALL_HASH) - fprintf(stdout, "%-28s\n", _("Repackaging...")); - else - fprintf(stdout, "%s\n", _("Repackaging erased files...")); - (void) fflush(stdout); - break; - - case RPMCALLBACK_REPACKAGE_PROGRESS: - if (amount && (flags & INSTALL_HASH)) - printHash(1, 1); /* Fixes "preparing..." progress bar */ - break; - - case RPMCALLBACK_REPACKAGE_STOP: - rpmcliProgressTotal = total; - rpmcliProgressCurrent = total; - if (flags & INSTALL_HASH) - printHash(1, 1); /* Fixes "preparing..." progress bar */ - rpmcliProgressTotal = rpmcliPackagesTotal; - rpmcliProgressCurrent = 0; - if (!(flags & INSTALL_LABEL)) - break; - if (flags & INSTALL_HASH) - fprintf(stdout, "%-28s\n", _("Upgrading...")); - else - fprintf(stdout, "%s\n", _("Upgrading packages...")); - (void) fflush(stdout); - break; - case RPMCALLBACK_UNINST_PROGRESS: break; case RPMCALLBACK_UNINST_START: @@ -265,9 +231,6 @@ int rpmInstall(rpmts ts, rpmcliPackagesTotal = 0; - if (rpmExpandNumeric("%{?_repackage_all_erasures}")) - ia->transFlags |= RPMTRANS_FLAG_REPACKAGE; - (void) rpmtsSetFlags(ts, ia->transFlags); probFilter = ia->probFilter; @@ -708,9 +671,6 @@ int rpmErase(rpmts ts, struct rpmInstallArguments_s * ia, vsflags |= RPMVSF_NOHDRCHK; ovsflags = rpmtsSetVSFlags(ts, vsflags); - if (rpmExpandNumeric("%{?_repackage_all_erasures}")) - ia->transFlags |= RPMTRANS_FLAG_REPACKAGE; - /* XXX suggest mechanism only meaningful when installing */ ia->transFlags |= RPMTRANS_FLAG_NOSUGGEST; |