mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Update zip in dictionary
This commit is contained in:
parent
e6b262617e
commit
7802fdce3c
1 changed files with 11 additions and 3 deletions
|
@ -71,11 +71,11 @@ class BuildPackage(object):
|
||||||
tar.close()
|
tar.close()
|
||||||
self._makeflags()
|
self._makeflags()
|
||||||
self._delete_sbo()
|
self._delete_sbo()
|
||||||
sbo_md5_list = SBoGrep(self.prgnam).checksum()
|
self._create_md5_dict()
|
||||||
for src, sbo_md5 in zip(self.sources, sbo_md5_list):
|
for src in self.sources:
|
||||||
# fix build sources with spaces
|
# fix build sources with spaces
|
||||||
src = src.replace("%20", " ")
|
src = src.replace("%20", " ")
|
||||||
check_md5(sbo_md5, src)
|
check_md5(self.sbo_md5[src], src)
|
||||||
shutil.copy2(src, self.prgnam)
|
shutil.copy2(src, self.prgnam)
|
||||||
os.chdir(self.path + self.prgnam)
|
os.chdir(self.path + self.prgnam)
|
||||||
# change permissions
|
# change permissions
|
||||||
|
@ -107,6 +107,14 @@ class BuildPackage(object):
|
||||||
print("") # new line at exit
|
print("") # new line at exit
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
|
|
||||||
|
def _create_md5_dict(self):
|
||||||
|
"""Create md5 dictionary per source
|
||||||
|
"""
|
||||||
|
self.sbo_md5 = {}
|
||||||
|
md5_lists = SBoGrep(self.prgnam).checksum()
|
||||||
|
for src, md5 in zip(self.sources, md5_lists):
|
||||||
|
self.sbo_md5[src] = md5
|
||||||
|
|
||||||
def _makeflags(self):
|
def _makeflags(self):
|
||||||
"""Set variable MAKEFLAGS with the numbers of
|
"""Set variable MAKEFLAGS with the numbers of
|
||||||
processors
|
processors
|
||||||
|
|
Loading…
Add table
Reference in a new issue