* build no'yu duzgun oku (commit etmeyi unutmusum)
* file not found error'ini daha bilgilendirici yap
This commit is contained in:
@@ -115,9 +115,9 @@ def copy(sourceFile, destinationFile):
|
||||
try:
|
||||
shutil.copy(file, destinationFile)
|
||||
except IOError:
|
||||
ctx.ui.error(' ActionsAPI [copy]: Permission denied.')
|
||||
ctx.ui.error('ActionsAPI [copy]: Permission denied.')
|
||||
else:
|
||||
ctx.ui.error(' ActionsAPI [copy]: File doesn\'t exists.')
|
||||
ctx.ui.error('ActionsAPI [copy]: File %s does not exist.' % file)
|
||||
|
||||
def copytree(source, destination, sym = False):
|
||||
'''recursively copy an entire directory tree rooted at source'''
|
||||
|
||||
@@ -372,6 +372,7 @@ class PisiBuild:
|
||||
ctx.ui.warning('(no previous build found, setting build no to 0.)')
|
||||
else:
|
||||
a = filter(lambda (x,y): y != None, found)
|
||||
ctx.ui.debug(str(a))
|
||||
if a:
|
||||
a.sort(lambda x,y : cmp(x[1],y[1]))
|
||||
old_package_fn = a[0][0]
|
||||
|
||||
+2
-1
@@ -52,7 +52,8 @@ class PackageInfo(specfile.PackageInfo):
|
||||
specfile.PackageInfo.__init__(self, node)
|
||||
self.version = getNodeText(node, "History/Update/Version")
|
||||
self.release = getNodeText(node, "History/Update/Release")
|
||||
build_ = getNodeText(node, "History/Update/Build")
|
||||
#FIXME: Support Build No under History/Update/Build
|
||||
build_ = getNodeText(node, "Build")
|
||||
if build_ != None:
|
||||
self.build = int(build_)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user