Remove unimplemented, unused RPMPROB_BADPRETRANS
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 16 Oct 2007 10:40:45 +0000 (13:40 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 16 Oct 2007 10:40:45 +0000 (13:40 +0300)
- leftover from pretrans syscall hack before %pretrans script days

lib/rpmps.c
lib/rpmps.h
python/rpmmodule.c

index 3389ff6..8e991e6 100644 (file)
@@ -232,11 +232,6 @@ const char * rpmProblemString(const rpmProblem prob)
            _("installing package %s needs %ld inodes on the %s filesystem"),
                pkgNEVR, (long)prob->ulong1, str1);
        break;
-    case RPMPROB_BADPRETRANS:
-       rc = snprintf(buf, nb,
-               _("package %s pre-transaction syscall(s): %s failed: %s"),
-               pkgNEVR, str1, strerror(prob->ulong1));
-       break;
     case RPMPROB_REQUIRES:
        rc = snprintf(buf, nb, _("%s is needed by %s%s"),
                altNEVR+2,
index cc944d1..b0c591b 100644 (file)
@@ -39,7 +39,6 @@ typedef enum rpmProblemType_e {
     RPMPROB_OLDPACKAGE,        /*!< package ... (which is newer than ...) is already installed */
     RPMPROB_DISKSPACE, /*!< installing package ... needs ... on the ... filesystem */
     RPMPROB_DISKNODES, /*!< installing package ... needs ... on the ... filesystem */
-    RPMPROB_BADPRETRANS        /*!< (unimplemented) */
  } rpmProblemType;
 
 /**
index 3780c67..5a3627b 100644 (file)
@@ -489,7 +489,6 @@ void init_rpm(void)
     REGISTER_ENUM(RPMPROB_OLDPACKAGE);
     REGISTER_ENUM(RPMPROB_DISKSPACE);
     REGISTER_ENUM(RPMPROB_DISKNODES);
-    REGISTER_ENUM(RPMPROB_BADPRETRANS);
 
     REGISTER_ENUM(VERIFY_DIGEST);
     REGISTER_ENUM(VERIFY_SIGNATURE);