From 83888c53d81a90678c81f814951eb7a83f0acce5 Mon Sep 17 00:00:00 2001 From: "A. Murat Eren" Date: Tue, 7 Mar 2006 21:43:57 +0000 Subject: [PATCH] =?UTF-8?q?=20=20neymi=C5=9F=20efendim=20anla=C5=9F=C4=B1l?= =?UTF-8?q?m=C4=B1yormu=C5=9F=20da=20bilmemneymi=C5=9F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pisi/build.py b/pisi/build.py index 6ba79950..bae179cb 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -50,8 +50,10 @@ def get_file_type(path, pinfo_list, install_dir): list""" Match = lambda x: [match for match in glob.glob(install_dir + x) if join(install_dir, path).find(match) > -1] - Sort = lambda x: o(x.reverse(), x) - o = lambda oo, o:o + + def Sort(x): + x.sort(reverse=True) + return x best_matched_path = Sort([pinfo.path for pinfo in pinfo_list if Match(pinfo.path)])[0] info = [pinfo for pinfo in pinfo_list if best_matched_path == pinfo.path][0]