diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2016-11-17 12:29:11 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2016-11-17 12:29:11 +0200 |
commit | 7f428ecf6e29dd15f77b92f3198d071c67372d3f (patch) | |
tree | 8f4fb0ab320adc067db2534914519b4bfb8c936b | |
parent | 1c25d27895338913d84827d0d670b00887dd1d56 (diff) | |
download | rpm-7f428ecf6e29dd15f77b92f3198d071c67372d3f.tar.gz |
Don't bother with headerVerifyInfo() on region tag
The region tag is hand-checked for its special values in
headerVerifyRegion() and now that v3 packages get the first tag
checked (commit 1c25d27895338913d84827d0d670b00887dd1d56), there's
little point in calling headerVerifyInfo() on the the region tag.
-rw-r--r-- | lib/package.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/package.c b/lib/package.c index 5a7eeb83f..c58db73c8 100644 --- a/lib/package.c +++ b/lib/package.c @@ -270,9 +270,8 @@ rpmRC headerVerifyRegion(rpmTagVal regionTag, goto exit; } - /* Check (and convert) the 1st tag element. */ - if (headerVerifyInfo(1, dl, pe, dataStart, &einfo, buf)) - goto exit; + /* Convert the 1st tag element. */ + ei2h(pe, &einfo); /* Is there an immutable header region tag? */ if (!(einfo.tag == regionTag)) { |