diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-03-17 11:53:27 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-03-17 11:53:27 +0200 |
commit | 37543ee0405c38a9d54a12bf0d54698773a3933c (patch) | |
tree | 90e26ec9afa8bb03b2e89c8b9223e3b1f0d7beaf /lib/poptI.c | |
parent | ed78cef2c3e14df29d95b476f00d51203fbe098e (diff) | |
download | rpm-37543ee0405c38a9d54a12bf0d54698773a3933c.tar.gz rpm-37543ee0405c38a9d54a12bf0d54698773a3933c.tar.bz2 rpm-37543ee0405c38a9d54a12bf0d54698773a3933c.zip |
Remove rollback support
- not possible to do reliably within rpm
- effort is better wasted on investigating fs-level snapshots, which
is way beyond rpm scope except for hooks to interact with the snapshot
mechanism to communicate beginning/end of transaction and such
Diffstat (limited to 'lib/poptI.c')
-rw-r--r-- | lib/poptI.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/poptI.c b/lib/poptI.c index 70edae969..9c72d8c8b 100644 --- a/lib/poptI.c +++ b/lib/poptI.c @@ -9,15 +9,12 @@ #include "debug.h" -extern time_t get_date(const char * p, void * now); /* XXX expedient lies */ - struct rpmInstallArguments_s rpmIArgs = { 0, /* transFlags */ 0, /* probFilter */ 0, /* installInterfaceFlags */ 0, /* eraseInterfaceFlags */ 0, /* qva_flags */ - 0, /* rbtid */ 0, /* numRelocations */ 0, /* noDeps */ 0, /* incldocs */ @@ -28,7 +25,6 @@ struct rpmInstallArguments_s rpmIArgs = { #define POPT_RELOCATE -1021 #define POPT_EXCLUDEPATH -1022 -#define POPT_ROLLBACK -1023 static void argerror(const char * desc) { @@ -81,18 +77,6 @@ static void installArgCallback( poptContext con, ia->numRelocations++; } break; - case POPT_ROLLBACK: - { time_t tid; - if (arg == NULL) - argerror(_("rollback takes a time/date stamp argument")); - - tid = get_date(arg, NULL); - - if (tid == (time_t)-1 || tid == (time_t)0) - argerror(_("malformed rollback time/date stamp argument")); - ia->rbtid = tid; - } break; - case RPMCLI_POPT_NODIGEST: ia->qva_flags |= VERIFY_DIGEST; break; @@ -293,9 +277,6 @@ struct poptOption rpmInstallPoptTable[] = { { "replacepkgs", '\0', POPT_BIT_SET, &rpmIArgs.probFilter, RPMPROB_FILTER_REPLACEPKG, N_("reinstall if the package is already present"), NULL}, - { "rollback", '\0', POPT_ARG_STRING|POPT_ARGFLAG_DOC_HIDDEN, 0, POPT_ROLLBACK, - N_("deinstall new, reinstall old, package(s), back to <date>"), - N_("<date>") }, { "test", '\0', POPT_BIT_SET, &rpmIArgs.transFlags, RPMTRANS_FLAG_TEST, N_("don't install, but tell if it would work or not"), NULL}, { "upgrade", 'U', POPT_BIT_SET, |