]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- can do without local var too
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 28 Jun 2009 15:34:04 +0000 (15:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/request.py -> 1.66

PLD_Builder/request.py

index ff5dd3478af49bb9c5c955e3683a0d996734942e..6baaec2adee97b5618549079c1b7ae94deaf8669 100644 (file)
@@ -148,10 +148,9 @@ class Batch:
             if c.nodeName == "src-rpm":
                 self.src_rpm = text(c)
             elif c.nodeName == "spec":
-                s = text(c)
                 # normalize specname, specname is used as buildlog and we don't
                 # want to be exposed to directory traversal attacks
-                self.spec = s.split('/')[-1]
+                self.spec = text(c).split('/')[-1]
             elif c.nodeName == "command":
                 self.spec = "COMMAND"
                 self.command = text(c)
This page took 0.028162 seconds and 4 git commands to generate.