Further fix package building

This commit is contained in:
jld3103 2021-10-17 18:14:39 +02:00
parent fe52671e06
commit c22b509347
2 changed files with 5 additions and 1 deletions

View file

@ -43,6 +43,10 @@ def create_chroot(chroot_name: str,
'-q', '-q',
'-W', '-W',
'-x', '-x',
'--exclude',
'pkgbuilds',
'--exclude',
'prebuilts',
f'{base_chroot_path}/', f'{base_chroot_path}/',
f'{chroot_path}/', f'{chroot_path}/',
]) ])

View file

@ -82,7 +82,7 @@ class Package:
self.names = list(set(names)) self.names = list(set(names))
self.depends = list(set(depends)) self.depends = list(set(depends))
self.repo = self.path.split('/')[0] self.repo = self.path.split('/')[2]
mode = '' mode = ''
with open(os.path.join(self.path, 'PKGBUILD'), 'r') as file: with open(os.path.join(self.path, 'PKGBUILD'), 'r') as file: