@dmnks approved this pull request.
> @@ -383,12 +385,22 @@ static char * getTarSpec(const char *arg)
if (!gotspec) {
rpmlog(RPMLOG_ERR, _("Failed to read spec file from %s\n"), arg);
- specFile = NULL;
+ } else {
+ /* remove trailing \n */
+ tarbuf[strlen(tarbuf)-1] = '\0';
+ specFinal = rpmExpand("%{_specdir}/%{basename:", tarbuf, "}", NULL);
Elegant! :smiley:
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1453#pullrequestreview-544981744
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint