Bug 1372310

Summary: "Failed to obtain srpm from dist-git" error
Product: [Community] Copr Reporter: Tomas Smetana <tsmetana>
Component: backendAssignee: clime
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: clime
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-01 12:07:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Sample log output
none
The "broken" spec file none

Description Tomas Smetana 2016-09-01 11:43:33 UTC
Created attachment 1196769 [details]
Sample log output

Firing up a build through API (using Jenkins COPR plugin) results in error like this one:
https://copr-be.cloud.fedoraproject.org/results/tsmetana/storaged/epel-7-x86_64/00448264-storaged/mockchain.log.gz:

Actually the error looks to be the same for all the branches. I have no idea what have I done wrong. I suspect this is a bug in COPR.

Comment 1 clime 2016-09-01 11:52:53 UTC
There is also this error message:

"can't parse\n\nCould not execute srpm: Could not get n-v-r-e from '\\n\\n'"

Usually this suggest something might wrong with the spec file definition. Please, try to make sure the spec file is correct.

Comment 2 Tomas Smetana 2016-09-01 12:00:22 UTC
Hm. That would be it. I have overlooked that part. And you're right, my SPEC file will not work the way I intended. However it's odd COPR can't parse it (there is just %if ... %else ... %endif construction around the Release tag).

Comment 3 Tomas Smetana 2016-09-01 12:01:34 UTC
Created attachment 1196779 [details]
The "broken" spec file

Just for the record...

Comment 4 clime 2016-09-01 12:07:52 UTC
Glad you solve it.

Comment 5 Tomas Smetana 2016-09-01 12:28:30 UTC
(In reply to clime from comment #4)
> Glad you solve it.

I did. You did not. :) COPR still can't parse a valid SPEC file...