trunk/scripts - check the length of the list
Ozan Çağlayan
uludag-commits at pardus.org.tr
10 Mar 2010 Çar 09:09:15 EET
Author: ozan.caglayan
Date: Wed Mar 10 09:09:15 2010
New Revision: 28068
Modified:
trunk/scripts/compare-files
Log:
check the length of the list
---
compare-files | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: trunk/scripts/compare-files
=================================================================
--- trunk/scripts/compare-files (original)
+++ trunk/scripts/compare-files Wed Mar 10 09:09:15 2010
@@ -30,7 +30,7 @@
open(old_list, "w").write("\n".join(old_package_files))
diff = os.popen("diff -U 0 %s %s" % (old_list, new_list)).read().strip().split("\n")
- if diff:
+ if len(diff) > 1:
diff = diff[3:]
f = open(results, "w")
f.write("# List of path differences for the package %s:\n\n" % package_name)
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi