Exemplo n.º 1
0
    def build_srpm(self):
        cmd = "make srpm"

        if not U.on_debug_mode():
            cmd += " V=0 > " + self.logfile("make_srpm")

        return self.shell(cmd)
Exemplo n.º 2
0
    def configure(self):
        if U.on_debug_mode():
            cmd = "autoreconf -vfi"
        else:
            cmd = "autoreconf -fi > " + self.logfile("configure")

        self.shell(cmd, timeout=180)
Exemplo n.º 3
0
    def sbuild(self):
        log = self.logfile("sbuild")
        c = "make dist" + " > " + log

        if not U.on_debug_mode():
            c += " 2> " + log

        self.shell(c, timeout=180)
Exemplo n.º 4
0
 def sbuild(self):
     if U.on_debug_mode():
         self.shell("./configure --quiet", timeout=180)
         self.shell("make")
         self.shell("make dist")
     else:
         self.shell(
             "./configure --quiet --enable-silent-rules", timeout=180
         )
         self.shell("make V=0 > " + self.logfile("make"))
         self.shell("make dist V=0 > " + self.logfile("make_dist"))