diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-02 12:38:20 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-02 12:38:20 +0300 |
commit | 5deb850f37fa4092bee51a48719a237d36842b95 (patch) | |
tree | 9bc6bc4d7b4611708cd443616096a0df7af686c0 /build | |
parent | 02a4806b4783ea5665a3010aca0ae05b9cf48024 (diff) | |
download | rpm-5deb850f37fa4092bee51a48719a237d36842b95.tar.gz rpm-5deb850f37fa4092bee51a48719a237d36842b95.tar.bz2 rpm-5deb850f37fa4092bee51a48719a237d36842b95.zip |
Take advantage of new header string getters
Diffstat (limited to 'build')
-rw-r--r-- | build/files.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/build/files.c b/build/files.c index e8a953c17..6d77782c1 100644 --- a/build/files.c +++ b/build/files.c @@ -1785,12 +1785,7 @@ static rpmRC processPackageFiles(rpmSpec spec, Package pkg, /* XXX spec->buildRoot == NULL, then xstrdup("") is returned */ fl.buildRoot = rpmGenPath(spec->rootDir, spec->buildRoot, NULL); - { struct rpmtd_s td; - const char *prefix; - headerGet(pkg->header, RPMTAG_DEFAULTPREFIX, &td, HEADERGET_MINMEM); - prefix = rpmtdGetString(&td); - fl.prefix = prefix ? xstrdup(prefix) : NULL; - } + fl.prefix = headerGetAsString(pkg->header, RPMTAG_DEFAULTPREFIX); fl.fileCount = 0; fl.processingFailed = 0; |