Mailinglist Archive: opensuse-buildservice (227 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] [PATCH] updated osc patch to add "createpacfromsrcrpm" cmd
- From: Michal Marek <mmarek@xxxxxxx>
- Date: Wed, 03 Jan 2007 13:33:21 +0100
- Message-id: <459BA291.9000404@xxxxxxx>
Hillier, Gernot wrote:
> I would like to make an additional update to this patch, but I seem to need
> help from the osc hackers:
>
> 1) It turned out, that the error handling should be improved. For example,
> some SPEC file authors use a macro for the package name and thus,
> "createpacfromsrcrpm" would use "%{name}" for the package name. I don't think
> that this rare case has to be really automatically fixed
Never seen that, but it shouldn't be that hard to fix this:
rpm -q --qf '%{name}\n' --specfile foo.spec | head -1
OR
rpm -q --qf '%{name}\n' --package foo.src.rpm
gives you the name of the main package.
hth,
Michal
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
> I would like to make an additional update to this patch, but I seem to need
> help from the osc hackers:
>
> 1) It turned out, that the error handling should be improved. For example,
> some SPEC file authors use a macro for the package name and thus,
> "createpacfromsrcrpm" would use "%{name}" for the package name. I don't think
> that this rare case has to be really automatically fixed
Never seen that, but it shouldn't be that hard to fix this:
rpm -q --qf '%{name}\n' --specfile foo.spec | head -1
OR
rpm -q --qf '%{name}\n' --package foo.src.rpm
gives you the name of the main package.
hth,
Michal
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |