mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Added doinst.sh file in sbo network
This commit is contained in:
parent
be2b02f3a3
commit
dc3ba822d3
2 changed files with 13 additions and 0 deletions
|
@ -100,6 +100,11 @@ class SBoNetwork(object):
|
||||||
".SlackBuild")
|
".SlackBuild")
|
||||||
fill = self.fill_pager(SlackBuild)
|
fill = self.fill_pager(SlackBuild)
|
||||||
self.pager(SlackBuild + fill)
|
self.pager(SlackBuild + fill)
|
||||||
|
elif self.choice in ["O", "o"]:
|
||||||
|
doinst_sh = ReadSBo(self.sbo_url).doinst("doinst.sh")
|
||||||
|
if doinst_sh != " ":
|
||||||
|
fill = self.fill_pager(doinst_sh)
|
||||||
|
self.pager(doinst_sh + fill)
|
||||||
elif self.choice in ["B", "b"]:
|
elif self.choice in ["B", "b"]:
|
||||||
self.build()
|
self.build()
|
||||||
delete(self.build_folder)
|
delete(self.build_folder)
|
||||||
|
@ -154,6 +159,8 @@ class SBoNetwork(object):
|
||||||
self.red, self.endc, br2))
|
self.red, self.endc, br2))
|
||||||
print("| In{0}{1}f{2}{3}o{4} View the Info file".format(
|
print("| In{0}{1}f{2}{3}o{4} View the Info file".format(
|
||||||
br1, self.red, self.endc, br2, fix_sp))
|
br1, self.red, self.endc, br2, fix_sp))
|
||||||
|
print("| D{0}{1}o{2}{3}inst.sh{4} View the doinst.sh "
|
||||||
|
"file".format(br1, self.red, self.endc, br2, fix_sp))
|
||||||
print("| {0}D{1}{2}ownload Download this package".format(
|
print("| {0}D{1}{2}ownload Download this package".format(
|
||||||
self.red, self.endc, br2))
|
self.red, self.endc, br2))
|
||||||
print("| {0}B{1}{2}uild Download and build".format(
|
print("| {0}B{1}{2}uild Download and build".format(
|
||||||
|
|
|
@ -48,3 +48,9 @@ class ReadSBo(object):
|
||||||
Read SlackBuild file
|
Read SlackBuild file
|
||||||
"""
|
"""
|
||||||
return URL(self.sbo_url + name + sbo_file).reading()
|
return URL(self.sbo_url + name + sbo_file).reading()
|
||||||
|
|
||||||
|
def doinst(self, doinst_sh):
|
||||||
|
"""
|
||||||
|
Read SlackBuild doinst.sh
|
||||||
|
"""
|
||||||
|
return URL(self.sbo_url + doinst_sh).reading()
|
||||||
|
|
Loading…
Add table
Reference in a new issue