aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS5
-rw-r--r--URPM.pm2
-rw-r--r--URPM.xs5
3 files changed, 9 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 975119c..c56dd10 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,9 @@
+Version 4.2 - 3 Dec 2010, by Per Øyvind Karlsen
+
+- fix URPM::Package::files()
+
Version 4.1 - 19 Nov 2010, by Per Øyvind Karlsen
+
- improve return value checking on headerGet() usage
- fix update_provides_files with RPMTAG_OLDFILENAMES
- ditch legacy compatibility use of headerPut() on FILENAME_TAG
diff --git a/URPM.pm b/URPM.pm
index a472a00..c5193c5 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -11,7 +11,7 @@ use URPM::Resolve;
use URPM::Signature;
our @ISA = qw(DynaLoader);
-our $VERSION = '4.1';
+our $VERSION = '4.2';
URPM->bootstrap($VERSION);
diff --git a/URPM.xs b/URPM.xs
index cc07e14..965cecf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -789,11 +789,11 @@ return_files(Header header, int filter_mode) {
he_dirIndexes->tag = RPMTAG_DIRINDEXES;
if(headerGet(header, he_dirIndexes, 0))
- dirNames = he_dirNames->p.argv;
+ dirIndexes = he_dirIndexes->p.ui32p;
he_dirNames->tag = RPMTAG_DIRNAMES;
if(headerGet(header, he_dirNames, 0))
- dirIndexes = he_dirIndexes->p.ui32p;
+ dirNames = he_dirNames->p.argv;
if (!baseNames || !dirNames || !dirIndexes) {
@@ -827,6 +827,7 @@ return_files(Header header, int filter_mode) {
}
baseNames = _free(baseNames);
+ dirIndexes = _free(dirIndexes);
dirNames = _free(dirNames);
list = _free(list);
}