diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-10-29 14:34:36 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-10-30 13:47:40 +0200 |
commit | cff6230a8c55b6cf925b7e33fb04f26a7d284d82 (patch) | |
tree | 8e5706f7bcd0dc0af86daaf5bf698031f5666b25 /lib/rpmfi_internal.h | |
parent | f01ed5459deb3b3cf5c1bd4077f89b02533071f0 (diff) | |
download | librpm-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.h | 7 |
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. */ |