diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-12 17:58:37 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-12 17:58:37 +0200 |
commit | b9010a3510033bfd83f07b47eda1cfa269b38429 (patch) | |
tree | 2fa8467d18f4e32ca0baa969e217c9b260153469 /lib/rpmdb.c | |
parent | 90cb50ff7abab62d99cfcda1f64f451aa2fe41cb (diff) | |
download | rpm-b9010a3510033bfd83f07b47eda1cfa269b38429.tar.gz rpm-b9010a3510033bfd83f07b47eda1cfa269b38429.tar.bz2 rpm-b9010a3510033bfd83f07b47eda1cfa269b38429.zip |
Add rpmdb record number to headers retrieved from rpmdb
- set "instance" number on retrieval from rpmdb
- add public headerGetInstance() function for retrieving the value
- ported from rpm5.org, useful for number of things
Diffstat (limited to 'lib/rpmdb.c')
-rw-r--r-- | lib/rpmdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 78a97b21e..118d0703e 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -2082,6 +2082,7 @@ top: goto top; return NULL; } + mi->mi_h->instance = mi->mi_offset; mi->mi_prevoffset = mi->mi_offset; mi->mi_modified = 0; |