summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <devnull@localhost>1999-01-19 16:24:43 +0000
committerewt <devnull@localhost>1999-01-19 16:24:43 +0000
commitaeee27354957ad5f63513f3ed580bee01428b479 (patch)
tree46059ec3d0c09a6001c002f36c2ae1c015c25b63
parentfb49619ccfe9eea3903d623c305a9310680267ac (diff)
downloadlibrpm-tizen-aeee27354957ad5f63513f3ed580bee01428b479.tar.gz
librpm-tizen-aeee27354957ad5f63513f3ed580bee01428b479.tar.bz2
librpm-tizen-aeee27354957ad5f63513f3ed580bee01428b479.zip
added SAVENSTATE action
CVS patchset: 2718 CVS date: 1999/01/19 16:24:43
-rw-r--r--lib/install.c7
-rw-r--r--lib/install.h3
-rw-r--r--lib/uninstall.c1
3 files changed, 10 insertions, 1 deletions
diff --git a/lib/install.c b/lib/install.c
index 2ab0a05cd..a160b653a 100644
--- a/lib/install.c
+++ b/lib/install.c
@@ -404,6 +404,12 @@ int installBinaryPackage(const char * rootdir, rpmdb db, FD_t fd, Header h,
ext = NULL;
break;
+ case SKIPNSTATE:
+ installFile = 0;
+ ext = NULL;
+ files[i].state = RPMFILE_STATE_NOTINSTALLED;
+ break;
+
case UNKNOWN:
case REMOVE:
break;
@@ -890,6 +896,7 @@ const char * fileActionString(enum fileActions a) {
case BACKUP: return "backup";
case SAVE: return "save";
case SKIP: return "skip";
+ case SKIPNSTATE: return "skipnstate";
case ALTNAME: return "altname";
case REMOVE: return "remove";
}
diff --git a/lib/install.h b/lib/install.h
index dbb4edf5a..d2c5c57bf 100644
--- a/lib/install.h
+++ b/lib/install.h
@@ -16,7 +16,8 @@ struct sharedFileInfo {
int otherPkg;
};
-enum fileActions { UNKNOWN = 0, CREATE, BACKUP, SAVE, SKIP, ALTNAME, REMOVE };
+enum fileActions { UNKNOWN = 0, CREATE, BACKUP, SAVE, SKIP, ALTNAME, REMOVE,
+ SKIPNSTATE };
enum fileTypes { XDIR, BDEV, CDEV, SOCK, PIPE, REG, LINK } ;
int removeBinaryPackage(char * root, rpmdb db, unsigned int offset, int flags,
diff --git a/lib/uninstall.c b/lib/uninstall.c
index 180c87882..145bea8f0 100644
--- a/lib/uninstall.c
+++ b/lib/uninstall.c
@@ -367,6 +367,7 @@ static int removeFile(char * file, unsigned int flags, short mode,
case CREATE:
case SAVE:
case SKIP:
+ case SKIPNSTATE:
case ALTNAME:
break;
}