Use hash to make shorter module and dotkit names, fixes #433
This commit is contained in:
parent
bcf705b85e
commit
90e1b1f0ea
1 changed files with 9 additions and 4 deletions
|
@ -194,12 +194,14 @@ class Dotkit(EnvModule):
|
|||
@property
|
||||
def file_name(self):
|
||||
return join_path(Dotkit.path, self.spec.architecture,
|
||||
self.spec.format('$_$@$%@$+$#.dk'))
|
||||
'%s.dk' % self.use_name)
|
||||
|
||||
@property
|
||||
def use_name(self):
|
||||
return self.spec.format('$_$@$%@$+$#')
|
||||
|
||||
return "%s-%s-%s-%s-%s" % (self.spec.name, self.spec.version,
|
||||
self.spec.compiler.name,
|
||||
self.spec.compiler.version,
|
||||
self.spec.dag_hash())
|
||||
|
||||
def _write(self, dk_file):
|
||||
# Category
|
||||
|
@ -235,7 +237,10 @@ def file_name(self):
|
|||
|
||||
@property
|
||||
def use_name(self):
|
||||
return self.spec.format('$_$@$%@$+$#')
|
||||
return "%s-%s-%s-%s-%s" % (self.spec.name, self.spec.version,
|
||||
self.spec.compiler.name,
|
||||
self.spec.compiler.version,
|
||||
self.spec.dag_hash())
|
||||
|
||||
|
||||
def _write(self, m_file):
|
||||
|
|
Loading…
Reference in a new issue