diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-04-08 16:05:58 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-04-08 16:05:58 +0000 |
commit | 78359aede8694b3ca0d7e12bfc3edda99bdc1173 (patch) | |
tree | 4cfb2147ce498d4782ced9d19f8a67901d4276bf /URPM.xs | |
parent | bee833ec1bd84238e99a1f55a1a5ccfeaa614b3f (diff) | |
download | perl-URPM-78359aede8694b3ca0d7e12bfc3edda99bdc1173.tar perl-URPM-78359aede8694b3ca0d7e12bfc3edda99bdc1173.tar.gz perl-URPM-78359aede8694b3ca0d7e12bfc3edda99bdc1173.tar.bz2 perl-URPM-78359aede8694b3ca0d7e12bfc3edda99bdc1173.tar.xz perl-URPM-78359aede8694b3ca0d7e12bfc3edda99bdc1173.zip |
add disttag & distepoch to @info@ in synthesis for easier parsing
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1046,12 +1046,17 @@ pack_header(URPM__Package pkg) { char *p = buff; const char *group = get_name(pkg->h, RPMTAG_GROUP); const char *nvra = get_nvra(pkg->h); - p += 1 + snprintf(buff, sizeof(buff), "%s@%d@%d@%s", nvra, + const char *disttag = get_name(pkg->h, RPMTAG_DISTTAG); + const char *distepoch = get_name(pkg->h, RPMTAG_DISTEPOCH); + + p += 1 + snprintf(buff, sizeof(buff), "%s@%d@%d@%s@%s@%s", nvra, get_int(pkg->h, RPMTAG_EPOCH), get_int(pkg->h, RPMTAG_SIZE), - group); + group, disttag, distepoch); pkg->info = memcpy(malloc(p-buff), buff, p-buff); _free(group); _free(nvra); + _free(disttag); + _free(distepoch); } if (pkg->filesize == 0) pkg->filesize = sigsize_to_filesize(get_int(pkg->h, RPMTAG_SIGSIZE)); if (pkg->requires == NULL && pkg->suggests == NULL) |