Kodlama standartına uyalım commiti, harmless...
This commit is contained in:
@@ -12,7 +12,7 @@ def gnuconfig_findnewest():
|
|||||||
newer_location = {}
|
newer_location = {}
|
||||||
|
|
||||||
for i in locations:
|
for i in locations:
|
||||||
newer_location[i] = re.sub( '\'', '', string.split((cat( i ) | tr(str.rstrip) | grep ('^timestamp') | join), '=')[1])
|
newer_location[i] = re.sub('\'', '', string.split((cat( i ) | tr(str.rstrip) | grep ('^timestamp') | join), '=')[1])
|
||||||
|
|
||||||
keys = newer_location.keys()
|
keys = newer_location.keys()
|
||||||
keys.sort()
|
keys.sort()
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import sys, re
|
import sys, re
|
||||||
from itertools import izip, imap, count, ifilter, ifilterfalse
|
from itertools import izip, imap, count, ifilter, ifilterfalse
|
||||||
|
|
||||||
def cat( filename ):
|
def cat(filename):
|
||||||
return file(filename).xreadlines()
|
return file(filename).xreadlines()
|
||||||
|
|
||||||
class grep:
|
class grep:
|
||||||
|
|||||||
+1
-1
@@ -79,7 +79,7 @@ class PisiBuild:
|
|||||||
# check if source already cached
|
# check if source already cached
|
||||||
destpath = fetch.filedest + "/" + fetch.filename
|
destpath = fetch.filedest + "/" + fetch.filename
|
||||||
if os.access(destpath, os.R_OK):
|
if os.access(destpath, os.R_OK):
|
||||||
if util.md5_file(destpath)==self.spec.source.archiveMD5:
|
if util.md5_file(destpath) == self.spec.source.archiveMD5:
|
||||||
ui.info('%s [cached]\n' % self.spec.source.archiveName)
|
ui.info('%s [cached]\n' % self.spec.source.archiveName)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ def remove(name, version, release):
|
|||||||
d[key] = 'r'
|
d[key] = 'r'
|
||||||
|
|
||||||
def purge(name, version, release):
|
def purge(name, version, release):
|
||||||
util.remove_file(files_name( name, version, release))
|
util.remove_file(files_name(name, version, release))
|
||||||
del d[key]
|
del d[key]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ def getChildText(node_s, tagpath):
|
|||||||
|
|
||||||
def getChildElts(node):
|
def getChildElts(node):
|
||||||
"""get only child elements"""
|
"""get only child elements"""
|
||||||
return filter(lambda x:x.nodeType==x.ELEMENT_NODE, node.childNodes)
|
return filter(lambda x:x.nodeType == x.ELEMENT_NODE, node.childNodes)
|
||||||
|
|
||||||
def getNode(node, tagpath):
|
def getNode(node, tagpath):
|
||||||
"""returns the *first* matching node for given tag path."""
|
"""returns the *first* matching node for given tag path."""
|
||||||
|
|||||||
Reference in New Issue
Block a user