Rename repodiff to repo-diff, since it conflicts with yum-utils
authorLingchao Xin <lingchaox.xin@intel.com>
Thu, 28 Nov 2013 08:03:22 +0000 (16:03 +0800)
committerLingchao Xin <lingchaox.xin@intel.com>
Thu, 28 Nov 2013 08:06:36 +0000 (16:06 +0800)
Change-Id: I29cd482eb49d07f5f807a64d5ed3888d173a878a

setup.py
tools/repo-diff [new file with mode: 0755]
tools/repodiff [deleted file]

index d1e23ef7a4047d3821a310202fde7b065dbd96ea..a4c41a702aaea2496c473c008427705bfa5c7a8f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(name = 'builddiff',
       author = 'Lingchao Xin',
       author_email = 'lingchaox.xin@intel.com',
       url = 'http://www.tizen.org/',
-      scripts = ['tools/repodiff',],
+      scripts = ['tools/repo-diff',],
       packages=['builddiff',],
       include_package_data=True,
       install_requires=['Jinja2>=2.6'],
diff --git a/tools/repo-diff b/tools/repo-diff
new file mode 100755 (executable)
index 0000000..f553cbb
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+
+from builddiff.repo import diff_to_JSON, diff_to_HTML
+
+import argparse
+import sys
+
+def main(argv):
+    description = 'Diff two repos with different urls'
+    parser = argparse.ArgumentParser(description=description)
+    parser.add_argument(dest='old', help='old repo')
+    parser.add_argument(dest='new', help='new repo')
+    parser.add_argument('--json', help='output json diffs', action='store_true')
+    args = parser.parse_args(argv)
+
+    if args.json:
+        print diff_to_JSON(args.old, args.new)
+    else:
+        print diff_to_HTML(args.old, args.new)
+
+if __name__ == '__main__':
+    sys.exit(main(sys.argv[1:]))
+
diff --git a/tools/repodiff b/tools/repodiff
deleted file mode 100755 (executable)
index f553cbb..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-
-from builddiff.repo import diff_to_JSON, diff_to_HTML
-
-import argparse
-import sys
-
-def main(argv):
-    description = 'Diff two repos with different urls'
-    parser = argparse.ArgumentParser(description=description)
-    parser.add_argument(dest='old', help='old repo')
-    parser.add_argument(dest='new', help='new repo')
-    parser.add_argument('--json', help='output json diffs', action='store_true')
-    args = parser.parse_args(argv)
-
-    if args.json:
-        print diff_to_JSON(args.old, args.new)
-    else:
-        print diff_to_HTML(args.old, args.new)
-
-if __name__ == '__main__':
-    sys.exit(main(sys.argv[1:]))
-