Changed the error about using external (unknown) names to a warning.
This commit is contained in:
parent
2764e087e8
commit
f28b7a56b8
|
|
@ -167,6 +167,7 @@ W_NOLAYER = '(W049) '
|
|||
W_EMPTYZIP = '(W050) '
|
||||
W_WRONGCHAR = '(W051) '
|
||||
W_NOKIVER = '(W052) '
|
||||
W_EXTNAME = '(W053) '
|
||||
|
||||
|
||||
class Rect(object):
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
# Project: KiBot (formerly KiPlot)
|
||||
import os
|
||||
from subprocess import (check_output, STDOUT, CalledProcessError)
|
||||
from .misc import (CMD_IBOM, URL_IBOM, BOM_ERROR)
|
||||
from .misc import (CMD_IBOM, URL_IBOM, BOM_ERROR, W_EXTNAME)
|
||||
from .gs import (GS)
|
||||
from .kiplot import check_script
|
||||
from .out_base import VariantOptions
|
||||
|
|
@ -98,8 +98,8 @@ class IBoMOptions(VariantOptions):
|
|||
def get_targets(self, parent, out_dir):
|
||||
if self.output:
|
||||
return [self.expand_filename(out_dir, self.output, 'ibom', 'html')]
|
||||
logger.error('{} uses a name generated by the external tool.'.format(parent))
|
||||
logger.error('Please use a name generated by KiBot or specify the name explicitly.')
|
||||
logger.warning(W_EXTNAME+'{} uses a name generated by the external tool.'.format(parent))
|
||||
logger.warning(W_EXTNAME+'Please use a name generated by KiBot or specify the name explicitly.')
|
||||
return []
|
||||
|
||||
def get_dependencies(self):
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import os
|
|||
from re import search
|
||||
from tempfile import NamedTemporaryFile
|
||||
from subprocess import (check_output, STDOUT, CalledProcessError)
|
||||
from .misc import (CMD_KIBOM, URL_KIBOM, BOM_ERROR)
|
||||
from .misc import (CMD_KIBOM, URL_KIBOM, BOM_ERROR, W_EXTNAME)
|
||||
from .kiplot import (check_script)
|
||||
from .gs import (GS)
|
||||
from .optionable import Optionable, BaseOptions
|
||||
|
|
@ -358,8 +358,8 @@ class KiBoMOptions(BaseOptions):
|
|||
def get_targets(self, parent, out_dir):
|
||||
if self.output:
|
||||
return [self.expand_filename_sch(out_dir, self.output, 'bom', self.format.lower())]
|
||||
logger.error('{} uses a name generated by the external tool.'.format(parent))
|
||||
logger.error('Please use a name generated by KiBot or specify the name explicitly.')
|
||||
logger.warning(W_EXTNAME+'{} uses a name generated by the external tool.'.format(parent))
|
||||
logger.warning(W_EXTNAME+'Please use a name generated by KiBot or specify the name explicitly.')
|
||||
return []
|
||||
|
||||
def run(self, output_dir):
|
||||
|
|
|
|||
Loading…
Reference in New Issue