diff options
author | jbj <devnull@localhost> | 2001-10-27 20:09:20 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-27 20:09:20 +0000 |
commit | 7402ce15464cc59617177a2af2799c36c8ef60fd (patch) | |
tree | 6c3185d6dd7d9e8e95b518a896799438176f5199 /rpm2cpio.c | |
parent | 4a1a5e81483a2f81b22c3a0d2cb054d93055998e (diff) | |
download | librpm-tizen-7402ce15464cc59617177a2af2799c36c8ef60fd.tar.gz librpm-tizen-7402ce15464cc59617177a2af2799c36c8ef60fd.tar.bz2 librpm-tizen-7402ce15464cc59617177a2af2799c36c8ef60fd.zip |
- legacy signatures always checked where possible on package read.
- wire transactions through rpmcli build modes.
- lazy rpmdb open/close through transaction methods (mostly anyways).
- no-brainer refcounts for rpmdb object.
- check added header against transaction set, replace if newer.
CVS patchset: 5135
CVS date: 2001/10/27 20:09:20
Diffstat (limited to 'rpm2cpio.c')
-rw-r--r-- | rpm2cpio.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/rpm2cpio.c b/rpm2cpio.c index 43025558e..73bbf804e 100644 --- a/rpm2cpio.c +++ b/rpm2cpio.c @@ -30,22 +30,14 @@ int main(int argc, char **argv) } fdo = fdDup(STDOUT_FILENO); -#ifdef DYING - rc = rpmReadPackageHeader(fdi, &h, NULL, NULL, NULL); -#else - { const char * rootDir = ""; - rpmdb db = NULL; - rpmTransactionSet ts = rpmtransCreateSet(db, rootDir); - - ts->need_payload = 1; + { rpmTransactionSet ts = rpmtransCreateSet(NULL, NULL); + /*@-mustmod@*/ /* LCL: segfault */ rc = rpmReadPackageFile(ts, fdi, "rpm2cpio", &h); /*@=mustmod@*/ - ts->need_payload = 0; ts = rpmtransFree(ts); } -#endif switch (rc) { case RPMRC_BADSIZE: |