Add new function for setting workDIR for modules
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
# Standard Python Modules
|
# Standard Python Modules
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import shutil
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
__trans = gettext.translation('pisi', fallback=True)
|
__trans = gettext.translation('pisi', fallback=True)
|
||||||
@@ -62,8 +63,10 @@ def __get_workdir_for_module(mod):
|
|||||||
# Set WorkDir for kernel modules
|
# Set WorkDir for kernel modules
|
||||||
#####
|
#####
|
||||||
|
|
||||||
if not globals().has_key("WorkDir") and get.srcNAME().startswith("module-"):
|
def setModuleWorkDIR():
|
||||||
globals()['WorkDir'] = __get_workdir_for_module(get.srcNAME())
|
if get.srcNAME().startswith("module-"):
|
||||||
|
globals()['WorkDir'] = __get_workdir_for_module(get.srcNAME())
|
||||||
|
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# Other helpers #
|
# Other helpers #
|
||||||
@@ -109,6 +112,7 @@ def __getExtraVersion():
|
|||||||
# Configuration stuff #
|
# Configuration stuff #
|
||||||
#######################
|
#######################
|
||||||
|
|
||||||
|
|
||||||
def configure():
|
def configure():
|
||||||
# Set EXTRAVERSION
|
# Set EXTRAVERSION
|
||||||
extraversion = __getExtraVersion()
|
extraversion = __getExtraVersion()
|
||||||
|
|||||||
Reference in New Issue
Block a user