[Mageia-sysadm] [295] - properly set each rpm macros at import
Olivier Blin
mageia at blino.org
Fri Jan 14 17:46:14 CET 2011
nicolas vigier <boklm at mars-attacks.org> writes:
> On Fri, 14 Jan 2011, root at mageia.org wrote:
>
>> - properly set each rpm macros at import
[...]
>> def unpack(self, topdir):
>> - execcmd("rpm -i --define '_topdir %s' %s" % (topdir, self.filename))
>> + execcmd("rpm -i --define '_sourcedir %s/SOURCES' " +
>> + "--define '_specdir %s/SPECS' --define '_patchdir %s/SPECS' %s"
>> + % (topdir, topdir, topdir, self.filename))
>
> _patchdir in SPECS dir now ?
And why not keep using topdir ?
--
Olivier Blin - blino
More information about the Mageia-sysadm
mailing list