Skip to content

Commit d4fea8f

Browse files
committed
base: fix an issue where script_location is not properly initialized
1 parent c6ef7a7 commit d4fea8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

acbs/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ class ACBSPackageInfo:
4040
subdir: Optional[str] = None
4141
fail_arch: Optional[re.Pattern] = None # fail_arch regex
4242
bin_arch: str = ''
43-
script_location: str = '' # script location (autobuild directory)
43+
script_location: str = field(init=False) # script location (autobuild directory)
4444
exported: Dict[str, str] = field(default_factory=dict) # extra exported variables from spec
4545
modifiers: str = '' # modifiers to be applied to the source file/folder (only available in autobuild4)
4646

47+
def __post_init__(self):
48+
self.script_location = self.location
4749

4850
@staticmethod
4951
def is_in_stage2(modifiers: str) -> bool:

0 commit comments

Comments
 (0)