mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
utils/scanpypi: write _SOURCE only when needed
For some packages, there's no need to add the _SOURCE variable, since the name of the source file is the same as the name of the package (like python-engineio). Hence, we'll add it to the .mk file only if needed. Signed-off-by: Asaf Kahlon <asafka7@gmail.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
7fd41d9fc8
commit
2bcc4edceb
@ -354,6 +354,7 @@ class BuildrootPackage():
|
|||||||
version=self.version)
|
version=self.version)
|
||||||
lines.append(version_line)
|
lines.append(version_line)
|
||||||
|
|
||||||
|
if self.buildroot_name != self.real_name:
|
||||||
targz = self.filename.replace(
|
targz = self.filename.replace(
|
||||||
self.version,
|
self.version,
|
||||||
'$({name}_VERSION)'.format(name=self.mk_name))
|
'$({name}_VERSION)'.format(name=self.mk_name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user