diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-11 15:17:10 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-02-02 16:44:15 -0800 |
commit | 8c37028da6ed96005a02f40694ef62e6b702814d (patch) | |
tree | 1dd66f6ab95e57db7e5f766caa6a54c603fabde3 /lib | |
parent | 1f5ef58d55e77be797db80c91df6e33c4d5334f0 (diff) | |
download | librpm-tizen-8c37028da6ed96005a02f40694ef62e6b702814d.tar.gz librpm-tizen-8c37028da6ed96005a02f40694ef62e6b702814d.tar.bz2 librpm-tizen-8c37028da6ed96005a02f40694ef62e6b702814d.zip |
strip off the tag
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmdb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c index c17dcbfc6..76425b4ca 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -294,6 +294,9 @@ static int dbt2set(dbiIndex dbi, DBT * data, dbiIndexSet * setp) _DBSWAP(hdrNum); _DBSWAP(tagNum); } + /* remove tagged directory info */ + if (tagNum.ui & 0x80000000) + tagNum.ui &= 0x0000ffff; set->recs[i].hdrNum = hdrNum.ui; set->recs[i].tagNum = tagNum.ui; } |