def build(self):
        """Only build and create Slackware package
        """
        pkg_security([self.name])
        self.error_uns()
        if self.FAULT:
            print("")
            self.msg.template(78)
            print("| Package {0} {1} {2} {3}".format(self.prgnam, self.red,
                                                     self.FAULT, self.endc))
            self.msg.template(78)
        else:
            sources = []
            if not os.path.exists(self.meta.build_path):
                os.makedirs(self.meta.build_path)
            if not os.path.exists(self._SOURCES):
                os.makedirs(self._SOURCES)
            os.chdir(self.meta.build_path)
            Download(self.meta.build_path, self.sbo_dwn.split(),
                     repo="sbo").start()
            Download(self._SOURCES, self.source_dwn, repo="sbo").start()
            script = self.sbo_dwn.split("/")[-1]
            for src in self.source_dwn:
                sources.append(src.split("/")[-1])
            BuildPackage(script, sources, self.meta.build_path,
                         auto=False).build()
            slack_package(self.prgnam)
def build ( self ) : pkg_security ( [ self . name ] ) self . error_uns ( ) if self . FAULT : print ( "" ) self . msg . template ( 78 ) print ( "| Package {0} {1} {2} {3}" . format ( self . prgnam , self . red , self . FAULT , self . endc ) ) self . msg . template ( 78 ) else : sources = [ ] if not os . path . exists ( self . meta . build_path ) : os . makedirs ( self . meta . build_path ) if not os . path . exists ( self . _SOURCES ) : os . makedirs ( self . _SOURCES ) os . chdir ( self . meta . build_path ) Download ( self . meta . build_path , self . sbo_dwn . split ( ) , repo = "sbo" ) . start ( ) Download ( self . _SOURCES , self . source_dwn , repo = "sbo" ) . start ( ) script = self . sbo_dwn . split ( "/" ) [ - 1 ] for src in self . source_dwn : sources . append ( src . split ( "/" ) [ - 1 ] ) BuildPackage ( script , sources , self . meta . build_path , auto = False ) . build ( ) slack_package ( self . prgnam )
Only build and create Slackware package