diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-01-02 12:25:02 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-01-02 12:25:02 +0200 |
commit | 54e77ab1e3f0773527ab06294792af23b3b6d780 (patch) | |
tree | 4abd2a306864e313b20b0eb7d5aeb6899df8e5a6 /lib/psm.c | |
parent | 7d80218f391cf2d6902eb6c031d117956f05e8e7 (diff) | |
download | rpm-54e77ab1e3f0773527ab06294792af23b3b6d780.tar.gz rpm-54e77ab1e3f0773527ab06294792af23b3b6d780.tar.bz2 rpm-54e77ab1e3f0773527ab06294792af23b3b6d780.zip |
Use rpmteSetFd() instead of direct access to rpmte structure
Diffstat (limited to 'lib/psm.c')
-rw-r--r-- | lib/psm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -21,7 +21,7 @@ #include "lib/fsm.h" /* XXX CPIO_FOO/FSM_FOO constants */ #include "lib/psm.h" #include "lib/rpmfi_internal.h" /* XXX replaced/states... */ -#include "lib/rpmte_internal.h" /* XXX te->fd */ +#include "lib/rpmte_internal.h" /* XXX internal apis */ #include "lib/rpmlead.h" /* writeLead proto */ #include "lib/signature.h" /* signature constants */ #include "lib/misc.h" /* XXX rpmMkdirPath */ @@ -307,7 +307,7 @@ rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd, if (te == NULL) { /* XXX can't happen */ goto exit; } - te->fd = fdLink(fd, RPMDBG_M("installSourcePackage")); + rpmteSetFd(te, fd); rpmteSetHeader(te, h); fi = rpmfiNew(ts, h, RPMTAG_BASENAMES, RPMFI_KEEPHEADER); |