]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- whitespace cleanup
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 1 Oct 2011 18:54:51 +0000 (18:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/acl.py -> 1.29
    PLD_Builder/bqueue.py -> 1.24
    PLD_Builder/build.py -> 1.18
    PLD_Builder/buildlogs.py -> 1.27
    PLD_Builder/chroot.py -> 1.41
    PLD_Builder/config.py -> 1.42
    PLD_Builder/deps.py -> 1.3
    PLD_Builder/file_sender.py -> 1.40
    PLD_Builder/ftp.py -> 1.15
    PLD_Builder/get_br.py -> 1.4
    PLD_Builder/gpg.py -> 1.25
    PLD_Builder/install.py -> 1.25
    PLD_Builder/load_balancer.py -> 1.11
    PLD_Builder/log.py -> 1.16
    PLD_Builder/loop.py -> 1.3
    PLD_Builder/notify.py -> 1.8
    PLD_Builder/notifyq.py -> 1.3
    PLD_Builder/poldek.py -> 1.4
    PLD_Builder/report.py -> 1.37
    PLD_Builder/request_fetcher.py -> 1.30
    PLD_Builder/request_handler.py -> 1.54
    PLD_Builder/rpm_builder.py -> 1.128
    PLD_Builder/srpm_builder.py -> 1.79
    PLD_Builder/stopwatch.py -> 1.3
    PLD_Builder/util.py -> 1.14
    client/smtpwrapper.py -> 1.2

26 files changed:
PLD_Builder/acl.py
PLD_Builder/bqueue.py
PLD_Builder/build.py
PLD_Builder/buildlogs.py
PLD_Builder/chroot.py
PLD_Builder/config.py
PLD_Builder/deps.py
PLD_Builder/file_sender.py
PLD_Builder/ftp.py
PLD_Builder/get_br.py
PLD_Builder/gpg.py
PLD_Builder/install.py
PLD_Builder/load_balancer.py
PLD_Builder/log.py
PLD_Builder/loop.py
PLD_Builder/notify.py
PLD_Builder/notifyq.py
PLD_Builder/poldek.py
PLD_Builder/report.py
PLD_Builder/request_fetcher.py
PLD_Builder/request_handler.py
PLD_Builder/rpm_builder.py
PLD_Builder/srpm_builder.py
PLD_Builder/stopwatch.py
PLD_Builder/util.py
client/smtpwrapper.py

index 4b981841af9eaa7f53aa8cf612ba3f959f9622f1..a769d0694570dc3e85d6503f28deaef09055b086 100644 (file)
@@ -18,18 +18,18 @@ class User:
         self.privs = []
         self.gpg_emails = []
         self.mailto = ""
-        
+
         if p.has_option(login, "gpg_emails"):
             self.gpg_emails = string.split(p.get(login, "gpg_emails"))
         else:
             log.panic("acl: [%s] has no gpg_emails" % login)
-            
+
         if p.has_option(login, "mailto"):
             self.mailto = p.get(login, "mailto")
         else:
             if len(self.gpg_emails) > 0:
                 self.mailto = self.gpg_emails[0]
-            
+
         if p.has_option(login, "privs"):
             for p in string.split(p.get(login, "privs")):
                 l = string.split(p, ":")
@@ -117,7 +117,7 @@ class ACL_Conf:
                     self.users[e] = user
             self.users[login] = user
         status.pop()
-    
+
     def user_by_email(self, ems):
         for e in ems:
             if self.users.has_key(e):
index a5bf61b2e5efd5ae5c29fc2b15d58557cfb2d9d4..aff32e90b50b042eae8f02a044cb990ce477d6d2 100644 (file)
@@ -74,7 +74,7 @@ class B_Queue:
                 self.fd = open(self.name, "r+")
             else:
                 self.fd = open(self.name, "w+")
-        
+
     def read(self):
         self._open()
         self.signers = []
@@ -112,7 +112,7 @@ class B_Queue:
             return 1
         except IOError:
             return 0
-    
+
     def unlock(self):
         fcntl.flock(self.fd, fcntl.LOCK_UN)
 
index 34d9e71b796f29db50db075e2f878e9c07fb91bf..e996731bcc5159e30d91be8f1489259513d5da88 100644 (file)
@@ -67,7 +67,7 @@ def build_all(r, build_fnc):
             if dep.build_failed:
                 can_build = 0
                 failed_dep = dep.spec
-        
+
         if batch.is_command() and can_build:
             batch.logfile = tmp + "command"
             if config.builder in batch.builders:
@@ -115,6 +115,6 @@ def build_all(r, build_fnc):
             batch.build_time = ""
             log.notice("building %s %s" % (batch.spec, batch.skip_reason))
             notify.add_batch(batch, "SKIP")
-            
+
     buildlogs.flush()
     chroot.run("rm -f %s" % string.join(r.chroot_files))
index b57acff022e88fa79e2a802ccf8267758ff3ce07..e874278f70f62a6f1b25a97f3f3e89cf029e6de9 100644 (file)
@@ -46,7 +46,7 @@ Type: buildlog
 Requester: %s
 END
 """ % (config.buildlogs_url, l['name'], config.builder, time.time(), self.requester_email)
-        
+
         q = self.queue[:]
         for l in q:
             f = open(path.buildlogs_queue_dir + '/' + l['id'] + ".desc.tmp", "w")
index 92354d3568ff5d5bac6bd6b22998efd141cb0d56..f099d018ebe5dff07ab8834f55b2d9b5e8a40e02 100644 (file)
@@ -13,7 +13,7 @@ from config import config
 
 def quote(cmd):
     return re.sub("([\"\\\\$`])", r"\\\1", cmd)
-    
+
 def command(cmd, user = None, nostdin=""):
     if user == None:
         user = config.builder_user
@@ -21,7 +21,7 @@ def command(cmd, user = None, nostdin=""):
         nostdin = "exec < /dev/null; "
     return "%s sudo chroot %s su - %s -c \"export LC_ALL=C; %s %s\"" \
             % (config.sudo_chroot_wrapper, config.chroot, user, nostdin, quote(cmd))
-    
+
 def command_sh(cmd):
     return "%s sudo chroot %s /bin/sh -c \"export LC_ALL=C; exec < /dev/null; %s\"" \
             % (config.sudo_chroot_wrapper, config.chroot, quote(cmd))
@@ -29,7 +29,7 @@ def command_sh(cmd):
 def popen(cmd, user = "builder", mode = "r"):
     f = os.popen(command(cmd, user), mode)
     return f
-    
+
 def run(cmd, user = "builder", logfile = None, logstdout = None):
     c = command(cmd, user, nostdin=True)
     if logfile != None:
index 05dad7fe6ed021d45193d281e580b36b22c43102..2e78cd870c556829eac05e463d282a3d16d45e3c 100644 (file)
@@ -46,7 +46,7 @@ class Builder_Conf:
                 return d
             else:
                 log.panic("cannot find %s::%s" % (builder, o))
-        
+
         p.readfp(open(path.builder_conf))
 
         self.admin_email = get("admin_email")
@@ -101,7 +101,7 @@ class Builder_Conf:
         self.builder_user = get("builder_user", "builder")
         self.sudo_chroot_wrapper = get("sudo_chroot_wrapper", "")
         self.nice = get("nice", "0")
-        
+
         f = get("syslog", "")
         if f != "":
             if syslog_facilities.has_key(f):
index 20d056df2e742e5393faa0a39ed28abfd0a8ed5f..404b25cac7ed3a2edb4c47d0293cb35edfd91049 100644 (file)
@@ -18,7 +18,7 @@ def compute_deps():
     rpm_prov = {}
     # list of required files
     req_files = {}
-    
+
     def get_req():
         msg("rpm-req... ")
         f = chr_popen("rpm -qa --qf '@\n%{NAME}\n[%{REQUIRENAME}\n]'")
@@ -42,7 +42,7 @@ def compute_deps():
             msg("[%s: %s, %s] " % (what, rpm_prov[what], pkg))
         else:
             rpm_prov[what] = pkg
-    
+
     def get_prov():
         msg("rpm-prov... ")
         f = chr_popen("rpm -qa --qf '@\n%{NAME}\n[%{PROVIDENAME}\n]'")
@@ -60,7 +60,7 @@ def compute_deps():
                 del req_files[l]
         f.close()
         msg("done\n")
+
     def get_prov_files():
         msg("rpm-files... ")
         f = chr_popen("rpm -qa --qf '@\n%{NAME}\n[%{FILENAMES}\n]'")
@@ -90,7 +90,7 @@ def compute_deps():
                     msg("[%s: %s] " % (pkg, req))
             requires[pkg] = pkg_reqs
         msg("done\n")
-        
+
     # map from pkg-name to list of pkg-names required by it
     # this is result
     requires = {}
@@ -103,7 +103,7 @@ def compute_deps():
 
 def remove_list(req, need):
     """List of packages scheduled for removal.
-    
+
     Given dependency information and list of needed packages compute list
     of packages that don't need to be present.
     """
index fccc4ea797bff56468818d20b001f2eb971181b6..3c016fd20c2fcf957a113ffc15c94dce0b15d440 100644 (file)
@@ -142,7 +142,7 @@ def maybe_flush_queue(dir):
         os.unlink(dir + "/retry-at")
     except:
         pass
-        
+
     status.push("flushing %s" % dir)
 
     if flush_queue(dir):
@@ -170,7 +170,7 @@ def flush_queue(dir):
         else:
             return rc
     q.sort(mycmp)
-    
+
     error = None
     # copy of q
     remaining = q[:]
@@ -186,7 +186,7 @@ def flush_queue(dir):
         os.unlink(d['_file'])
         os.unlink(d['_desc'])
         remaining.remove(d)
-        
+
     if error != None:
         emails = {}
         emails[config.admin_email] = 1
@@ -198,7 +198,7 @@ def flush_queue(dir):
                 emails[d['Requester']] = 1
         e = emails.keys()
         m = mailer.Message()
-        m.set_headers(to = string.join(e, ", "), 
+        m.set_headers(to = string.join(e, ", "),
                       subject = "[%s] builder queue problem" % config.builder)
         m.write("there were problems sending files from queue %s:\n" % dir)
         m.write("problems:\n")
index 9e0a933ad6ceb27ea1a26799dda80f314148b10d..0d13be63416e28d7e5678f2c9f33dfec564e4542 100644 (file)
@@ -25,7 +25,7 @@ class FTP_Queue:
                 self.url = config.test_ftp_url
             else:
                 self.url = config.ftp_url
-        
+
     def add(self, file, type):
         # if /dev/null, say bye bye
         if self.url == "/dev/null":
@@ -46,7 +46,7 @@ Type: %s
 Requester: %s
 END
 """ % (self.url, l['name'], config.builder, time.time(), l['type'], self.requester_email)
-        
+
         for l in self.queue:
             f = open(path.ftp_queue_dir + '/' + l['id'] + ".desc", "w")
             f.write(desc(l))
@@ -63,7 +63,7 @@ def add(f, type="rpm"):
 
 def flush():
     queue.flush()
-    
+
 def kill():
     queue.kill()
 
@@ -72,6 +72,6 @@ def init(r=None, rpmqa=False):
 
 def status():
     return queue.status
-    
+
 def clear_status():
     queue.status = ""
index 5f5efe5e942a00652b9cdb4668799a6ff169a604..1f69394c31f60b354e4e42dadaf17781e7fd7b2b 100644 (file)
@@ -8,7 +8,7 @@ from util import *
 
 def get_build_requires(spec, bconds_with, bconds_without):
     cond_rx = re.compile(r"%\{(\!\?|\?\!|\?)([a-zA-Z0-9_+]+)\s*:([^%\{\}]*)\}")
-    
+
     def expand_conds(l):
         def expand_one(m):
             if m.group(1) == "?":
@@ -18,7 +18,7 @@ def get_build_requires(spec, bconds_with, bconds_without):
                 if not macros.has_key(m.group(2)):
                     return m.group(3)
             return ""
-        
+
         for i in range(10):
             l = cond_rx.sub(expand_one, l)
             if len(l) > 1000: break
@@ -32,13 +32,13 @@ def get_build_requires(spec, bconds_with, bconds_without):
                 return string.strip(macros[m.group(1)])
             else:
                 return m.group(0) # don't change
-                
+
         for i in range(10):
             l = macro_rx.sub(expand_one, l)
             if len(l) > 1000: break
-            
+
         return expand_conds(l)
-    
+
     simple_br_rx = re.compile(r"^BuildRequires\s*:\s*([^\s]+)", re.I)
     bcond_rx = re.compile(r"^%bcond_(with|without)\s+([^\s]+)")
     version_rx = re.compile(r"^Version\s*:\s*([^\s]+)", re.I)
@@ -46,7 +46,7 @@ def get_build_requires(spec, bconds_with, bconds_without):
     name_rx = re.compile(r"^Name\s*:\s*([^\s]+)", re.I)
     define_rx = re.compile(r"^\%define\s+([a-zA-Z0-9_+]+)\s+(.*)", re.I)
     any_br_rx = re.compile(r"BuildRequires", re.I)
-    
+
     macros = {}
     for b in bconds_with:
         macros["_with_%s" % b] = 1
@@ -59,24 +59,24 @@ def get_build_requires(spec, bconds_with, bconds_without):
     macros["kgcc_package"] = "gcc"
 
     build_req = []
-        
+
     f = open(spec)
     for l in xreadlines.xreadlines(f):
         l = string.strip(l)
         if l == "%changelog": break
-        
+
         # %bcond_with..
         m = bcond_rx.search(l)
         if m:
             bcond = m.group(2)
             if m.group(1) == "with":
-                if macros.has_key("_with_%s" % bcond): 
+                if macros.has_key("_with_%s" % bcond):
                     macros["with_%s" % bcond] = 1
             else:
-                if not macros.has_key("_without_%s" % bcond): 
+                if not macros.has_key("_without_%s" % bcond):
                     macros["with_%s" % bcond] = 1
             continue
-    
+
         # name,version,release
         m = version_rx.search(l)
         if m: macros["version"] = m.group(1)
@@ -88,7 +88,7 @@ def get_build_requires(spec, bconds_with, bconds_without):
         # %define
         m = define_rx.search(l)
         if m: macros[m.group(1)] = m.group(2)
-        
+
         # *BuildRequires*
         if any_br_rx.search(l):
             l = expand_macros(l)
index 1da174e1ad6d1f3b269e7bbf48fa584435f646c9..5c5dbecfc08853b55023abc74224358d1febb11b 100644 (file)
@@ -30,7 +30,7 @@ def get_keys(buf):
 
     rx = re.compile("^gpg: Signature made .*using [DR]SA key ID (.+)")
     keys = []
-    
+
     for l in d_stderr.split('\n'):
         m = rx.match(l)
         if m:
index 88033fe8bd992df8526d7f1aa7b690507ff0747a..3e23699ab217b945109e28d04874b033073f3cfc 100644 (file)
@@ -178,7 +178,7 @@ def install_br(r, b):
     if len(needed) == 0:
         b.log_line("no BR needed")
         return True
-    
+
     nbr = ""
     for bre in needed.keys():
         nbr = nbr + " " + re.escape(bre)
index 1dd7e04622737cf3d0fa12b14dc0d620005a2149..2e182c89f8204f2ca9d3cc08440eaf415bc541d9 100644 (file)
@@ -24,11 +24,11 @@ def builders_order():
     for b in config.binary_builders:
         bs[b] = 0
         bl.append(b)
-        
+
     lck = lock.lock("got-lock")
     f = open(path.got_lock_file, "r+")
     line_no = 0
-    
+
     for l in f.xreadlines():
         line_no += 1
         b = string.strip(l)
@@ -39,7 +39,7 @@ def builders_order():
 
     def mycmp(b1, b2):
         return cmp(bs[b1], bs[b2])
-        
+
     bl.sort(mycmp)
 
     f.seek(0)
index 636090bc0faa1e2a786a9822c373b651ee1fbcbb..54a6c672e21a8c32b01085f528b36e22623f839e 100644 (file)
@@ -26,22 +26,22 @@ def log(p, s):
     f = open(path.log_file, "a")
     f.write("%s [%s]: %s [%s]\n" % (time.asctime(), builder, s, os.path.basename(sys.argv[0])))
     f.close()
-    
+
 def panic(s):
     log(syslog.LOG_ALERT, "PANIC: %s" % s)
     raise Exception, "PANIC: %s" % str(s)
 
 def alert(s):
-    log(syslog.LOG_ALERT, "alert: %s" % s) 
+    log(syslog.LOG_ALERT, "alert: %s" % s)
+
 def error(s):
-    log(syslog.LOG_ERR, "error: %s" % s) 
+    log(syslog.LOG_ERR, "error: %s" % s)
+
 def warn(s):
-    log(syslog.LOG_WARNING, "warning: %s" % s) 
+    log(syslog.LOG_WARNING, "warning: %s" % s)
+
 def notice(s):
-    log(syslog.LOG_NOTICE, "notice: %s" % s) 
+    log(syslog.LOG_NOTICE, "notice: %s" % s)
 
 def open_syslog(name, f):
     global do_syslog
index 5fa4b1e44a207b9aa214e8c430a158f59b047c22..bc5be9a1bcfe076beab8a9c5f99544280da16fe0 100644 (file)
@@ -20,7 +20,7 @@ def run_loop(fnc, secs = 5, max = 60):
                     sys.exit(s)
             else:
                 sys.exit(10)
-            
+
     start = time.time()
     while time.time() - start < max:
         last = time.time()
index f830018363f76950b87e110f5630f92a1876ad6b..5b0368f8a064a29833c9e0575cde0cdc831a103b 100644 (file)
@@ -13,7 +13,7 @@ class Notifier:
         self.xml = StringIO.StringIO()
         self.xml.write("<notification group-id='%s' builder='%s'>\n" % \
                         (g.id, config.builder))
-    
+
     def send(self, r):
         sio = StringIO.StringIO()
         self.xml.write("</notification>\n")
@@ -24,10 +24,10 @@ class Notifier:
         notifyq.init(r)
         notifyq.add(sio)
         notifyq.flush()
-    
+
     def add_batch(self, b, s):
         self.xml.write("  <batch id='%s' status='%s' />\n" % (b.b_id, s))
-    
+
 n = None
 
 def begin(group):
index dc73d664b74ff66e790103f0d61d693c3474ec88..d7bea90f1fc0cdf5247cb25cb11e514fa9a2ca8d 100644 (file)
@@ -17,7 +17,7 @@ class Notify_Queue:
         self.queue = []
         self.requester_email = g.requester_email
         self.notify_url = config.notify_url
-        
+
     def add(self, file):
         id = util.uuid()
         f = open(path.notify_queue_dir + '/' + id, 'w')
@@ -34,7 +34,7 @@ Time: %d
 Requester: %s
 END
 """ % (self.notify_url, l['id'], config.builder, time.time(), self.requester_email)
-        
+
         for l in self.queue:
             f = open(path.notify_queue_dir + '/' + l['id'] + ".desc", "w")
             f.write(desc(l))
@@ -51,7 +51,7 @@ def add(notify):
 
 def flush():
     queue.flush()
-    
+
 def kill():
     queue.kill()
 
@@ -60,6 +60,6 @@ def init(r):
 
 def status():
     return queue.status
-    
+
 def clear_status():
     queue.status = ""
index ad9fa8bfc6f29ca416febcf7882cf7cb24d749da..9b23a899344053679e2b6fc021edc3a0049b925b 100644 (file)
@@ -19,10 +19,10 @@ def get_poldek_requires():
     # and intersection method on set object
     def intersect(a, b):
         r = []
-        for x in a: 
+        for x in a:
             if x in b: r.append(x)
         return r
-    
+
     # add given req-list to cur_pkg_reqs
     def add_req(reqs):
         if len(reqs) == 1:
@@ -49,11 +49,11 @@ def get_poldek_requires():
                         return
             if not did:
                 cur_pkg_reqs.append(reqs)
-        
+
     pkg_reqs = {}
     cur_pkg_reqs = None
     cur_pkg = None
-    
+
     f = chr_popen("poldek -v -v --verify --unique-pkg-names")
     for l in xreadlines.xreadlines(f):
         m = name_rx.match(l)
@@ -78,7 +78,7 @@ def get_poldek_requires():
                 else:
                     msg("poldek_reqs: bad pkg name: %s\n" % x)
             if len(reqs) != 0: add_req(reqs)
-    
+
     f.close()
 
     if cur_pkg:
index 02d46d5d07419b256d6fb9076521df2f8d022f87..a0fe7be98a2cca1872ae70532d6230fda606e060 100644 (file)
@@ -52,7 +52,7 @@ def info_from_log(b, target):
                 copy_mode = 0
             else:
                 target.write(l)
-    
+
 def send_report(r, is_src = False):
     s_failed = ' '.join([b.spec for b in r.batches if b.build_failed])
     s_ok = ' '.join([b.spec for b in r.batches if not b.build_failed])
@@ -70,7 +70,7 @@ def send_report(r, is_src = False):
         subject = 'upgrade failed '
 
     subject += ' '.join((s_failed, s_ok)).strip()
-    
+
     m = mailer.Message()
     m.set_headers(to = r.requester_email,
                   cc = config.builder_list,
@@ -84,9 +84,9 @@ def send_report(r, is_src = False):
     for b in r.batches:
         if b.build_failed and b.logfile == None:
             info = b.skip_reason
-        elif b.build_failed: 
+        elif b.build_failed:
             info = "FAILED"
-        else: 
+        else:
             info = "OK"
         m.write("%s (%s): %s\n" % (b.spec, b.branch, info))
 
@@ -99,13 +99,13 @@ def send_report(r, is_src = False):
             m.write("\n\n*** buildlog for %s\n" % b.spec)
             m.append_log(b.logfile)
             m.write("\n\n")
-            
+
     m.send()
 
 def send_cia_report(r, is_src = False):
 
     subject = 'DeliverXML'
-    
+
     m = mailer.Message()
     if (len(config.bot_email) == 0):
         return
@@ -134,6 +134,6 @@ def send_cia_report(r, is_src = False):
     f = open(path.root_dir + '/PLD_Builder/cia-foot.xml')
     m.write(f.read())
     f.close()
-                        
+
     # send the e-mail
     m.send()
index f293b37ba29b33dd0ba3c689578df71e3df3e3ca..a677a71302fca94a2be12d85fa20a1464bff5534 100644 (file)
@@ -92,7 +92,7 @@ def handle_reqs(builder, reqs):
     q.lock(0)
     q.read()
     for r in reqs:
-        if r.kind != 'group': 
+        if r.kind != 'group':
             raise Exception, 'handle_reqs: fatal: huh? %s' % r.kind
         need_it = 0
         for b in r.batches:
@@ -110,14 +110,14 @@ def main():
         sys.exit(1)
     init_conf()
     acl.try_reload()
-    
+
     status.push("fetching requests")
     if has_new(config.control_url):
         q = fetch_queue(config.control_url)
         max_no = 0
         q_new = []
         for r in q:
-            if r.no > max_no: 
+            if r.no > max_no:
                 max_no = r.no
             if r.no > last_count:
                 q_new.append(r)
@@ -128,8 +128,8 @@ def main():
         f.close()
     status.pop()
     lck.close()
-    
+
 if __name__ == '__main__':
-    # http connection is established (and few bytes transferred through it) 
+    # http connection is established (and few bytes transferred through it)
     # each $secs seconds.
     loop.run_loop(main, secs = 10)
index 9416809dd385d16387967d19ff7ba5fdc89d8c12..388cc9b6a0843715c2a564249c871d4c3b18026d 100644 (file)
@@ -22,7 +22,7 @@ from config import config, init_conf
 
 def check_double_id(id):
     id_nl = id + "\n"
-    
+
     ids = open(path.processed_ids_file)
     for i in ids.xreadlines():
         if i == id_nl:
@@ -30,7 +30,7 @@ def check_double_id(id):
             log.alert("request %s already processed" % id)
             return 1
     ids.close()
-    
+
     ids = open(path.processed_ids_file, "a")
     ids.write(id_nl)
     ids.close()
@@ -49,7 +49,7 @@ def handle_group(r, user):
         m.set_headers(subject = "building %s failed" % spec)
         m.write_line(msg)
         m.send()
-    
+
     lockf = lock("request")
     if check_double_id(r.id):
         lockf.close()
@@ -112,7 +112,7 @@ def handle_group(r, user):
                                 % (user.get_login(), pkg, bld, batch.branch))
                     lockf.close()
                     return
-    
+
     r.priority = user.check_priority(r.priority,config.builder)
     r.requester = user.get_login()
     r.requester_email = user.mail_to()
index 0fda1b5fe86c20c4ea97e6748505378877aaf935..66720e2ad40b30b379b016da62157f5ce123e8f7 100644 (file)
@@ -216,7 +216,7 @@ def build_rpm(r, b):
 
     def ll(l):
         util.append_to(b.logfile, l)
+
     if b.files != []:
         rpm_cache_dir = config.rpm_cache_dir
         if "test-build" not in r.flags:
@@ -318,7 +318,7 @@ def main_for(builder):
         l.close()
     else:
         msg = "HIGH PRIORITY: "
-    
+
     msg += "handling request %s (%d) for %s from %s, priority %s" \
             % (req.id, req.no, config.builder, req.requester, req.priority)
     log.notice(msg)
@@ -340,11 +340,11 @@ def main_for(builder):
     if len(q.requests)<previouslen:
         q.write()
     q.unlock()
-    
+
 def main():
     if len(sys.argv) < 2:
         raise Exception, "fatal: need to have builder name as first arg"
     return main_for(sys.argv[1])
-    
+
 if __name__ == '__main__':
     loop.run_loop(main)
index 190ef203a76f10ffc11527a5fee7607800fbe5a6..bef7c86842c353a68e387e6a2d2590234157e16b 100644 (file)
@@ -42,7 +42,7 @@ def pick_request(q):
     ret = q.requests[0]
     q.requests = q.requests[1:]
     return ret
-    
+
 def store_binary_request(r):
     new_b = []
     for b in r.batches:
@@ -98,7 +98,7 @@ def build_srpm(r, b):
     else:
                     tag_test=" -Tp %s -tt" % (config.tag_prefixes[0],)
     cmd = ("cd rpm/packages; nice -n %s ./builder %s -bs %s -r %s %s %s %s 2>&1" %
-             (config.nice, builder_opts, b.bconds_string(), b.branch, 
+             (config.nice, builder_opts, b.bconds_string(), b.branch,
               tag_test, b.kernel_string(), b.spec))
     util.append_to(b.logfile, "request from: %s" % r.requester)
     util.append_to(b.logfile, "started at: %s" % time.asctime())
index 3f0d6cf0f5f44d44700fa0caaaa836f8be76d7d2..151c164e4ff63bf8bc55b9950787b5b45cf40078 100644 (file)
@@ -21,9 +21,9 @@ class Time:
 
     def format(self):
         return "user:%.2fs sys:%.2fs real:%.2fs (faults io:%d non-io:%d)" % \
-                (self.user_time, self.sys_time, self.time, self.io_faults, 
+                (self.user_time, self.sys_time, self.time, self.io_faults,
                  self.non_io_faults)
-        
+
 class Timer:
     def __init__(self):
         self.starts = []
index 870e4689b2fcef3a143815462eaebfd0bb93ca05..316a8f19f1461a377da5a5054dc23abdf7f8e312 100644 (file)
@@ -27,7 +27,7 @@ else:
 
 def pkg_name(nvr):
     return re.match(r"(.+)-[^-]+-[^-]+", nvr).group(1)
-    
+
 def msg(m):
     sys.stderr.write(m)
 
index b4c77c70fe10abc43454e86b9c2af8b30cac7f3f..ad4ff7b212959fd5baa9a76d12e90a1766db3b45 100644 (file)
@@ -11,6 +11,6 @@ msg = sys.stdin.read()
 
 server = smtplib.SMTP(smtp_host)
 # server.set_debuglevel(1)
-server.sendmail("matkor@pld-linux.org","builder-ac@pld-linux.org", msg) # Adresses should be taken from .requestrc 
+server.sendmail("matkor@pld-linux.org","builder-ac@pld-linux.org", msg) # Adresses should be taken from .requestrc
 server.quit()
 
This page took 0.250894 seconds and 4 git commands to generate.