summaryrefslogtreecommitdiff
path: root/lib/rpmfi_internal.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-10-29 14:34:36 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-10-30 13:47:40 +0200
commitcff6230a8c55b6cf925b7e33fb04f26a7d284d82 (patch)
tree8e5706f7bcd0dc0af86daaf5bf698031f5666b25 /lib/rpmfi_internal.h
parentf01ed5459deb3b3cf5c1bd4077f89b02533071f0 (diff)
downloadlibrpm-tizen-cff6230a8c55b6cf925b7e33fb04f26a7d284d82.tar.gz
librpm-tizen-cff6230a8c55b6cf925b7e33fb04f26a7d284d82.tar.bz2
librpm-tizen-cff6230a8c55b6cf925b7e33fb04f26a7d284d82.zip
Don't bother fetching and storing pre- and posttrans scripts in rpmfi
- the psm script machinery requires the full header to do anything at all, so the script + scriptprog were only used to check if the package *has* such scripts, a single integer will do just fine there thank you
Diffstat (limited to 'lib/rpmfi_internal.h')
-rw-r--r--lib/rpmfi_internal.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/rpmfi_internal.h b/lib/rpmfi_internal.h
index 4e0180eb0..b27390bee 100644
--- a/lib/rpmfi_internal.h
+++ b/lib/rpmfi_internal.h
@@ -96,10 +96,9 @@ struct rpmfi_s {
pgpHashAlgo digestalgo; /*!< File checksum algorithm */
unsigned char * digests; /*!< File checksums in binary. */
- char * pretrans;
- char * pretransprog;
- char * posttrans;
- char * posttransprog;
+#define RPMFI_HAVE_PRETRANS (1 << 0)
+#define RPMFI_HAVE_POSTTRANS (1 << 1)
+ int transscripts; /*!< pre/posttrans script existence */
char * fn; /*!< File name buffer. */
size_t fnlen; /*!< FIle name buffer length. */