Commit 8abfee60 authored by Alexandre Detiste's avatar Alexandre Detiste

ECWolf: avoid using _from before assignment

parent df737510
......@@ -75,11 +75,11 @@ class EcwolfTask(PackagingTask):
else:
raise AssertionError('wolf-common.png should have existed')
from_ = os.path.splitext(from_)[0] + '.svgz'
if os.path.exists(from_):
svgdir = os.path.join(destdir, 'usr/share/icons/hicolor/scalable/apps')
mkdir_p(svgdir)
install_data(from_, os.path.join(svgdir, '%s.svgz' % package.name))
from_ = os.path.splitext(from_)[0] + '.svgz'
if os.path.exists(from_):
svgdir = os.path.join(destdir, 'usr/share/icons/hicolor/scalable/apps')
mkdir_p(svgdir)
install_data(from_, os.path.join(svgdir, '%s.svgz' % package.name))
install_to = self.packaging.substitute(package.install_to,
package.name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment