summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-01-02 12:25:02 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-01-02 12:25:02 +0200
commit54e77ab1e3f0773527ab06294792af23b3b6d780 (patch)
tree4abd2a306864e313b20b0eb7d5aeb6899df8e5a6 /lib/psm.c
parent7d80218f391cf2d6902eb6c031d117956f05e8e7 (diff)
downloadrpm-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/psm.c b/lib/psm.c
index 8c1d130ec..ccf73f349 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -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);