const char *version = headerGetString(h, RPMTAG_VERSION);
const char *release = headerGetString(h, RPMTAG_RELEASE);
const char *arch = headerGetString(h, RPMTAG_ARCH);
+ const char *vcs = headerGetString(h, RPMTAG_VCS);
- if (version == NULL || release == NULL || arch == NULL)
- _E("Failed to get version, release and arch for: %s", pkg_name);
- else if (asprintf(&result, "%s;%s;%s;%s", pkg_name, version, release, arch) == -1)
+ if (version == NULL || release == NULL || arch == NULL || vcs == NULL)
+ _E("Failed to get version, release, arch and VCS for: %s", pkg_name);
+ else if (asprintf(&result, "%s;%s;%s;%s;%s", pkg_name, version, release, arch, vcs) == -1)
_E("asprintf() error: %m");
return result;