From eab5e18c4c64de1d4922e2b2263c9954aacd11c1 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 6 Feb 2015 13:47:54 -0500 Subject: chk_arch_pkg.py: add testing and community-testing repos --- build_tools/bin/chk_arch_pkg.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build_tools/bin/chk_arch_pkg.py b/build_tools/bin/chk_arch_pkg.py index eeb30ee..5d428db 100755 --- a/build_tools/bin/chk_arch_pkg.py +++ b/build_tools/bin/chk_arch_pkg.py @@ -13,7 +13,7 @@ import re import subprocess def getArchVer(): - repos=['core', 'extra', 'community', 'aur'] + repos=['testing', 'core', 'extra', 'community-testing', 'community', 'aur'] website="" archVer="" aPKGBUILD="" @@ -117,7 +117,7 @@ def getSource(): if repo == "aur": dlSource = sourceURL else: - if repo == "community": + if "community" in repo: repoTag = "community" else: repoTag = "packages" @@ -139,10 +139,13 @@ def getSource(): srcDir = os.getcwd() + "/" + repoTag + "-packages/" + currDirName + "/trunk/" src_files = os.listdir(srcDir) for file_name in src_files: - if file_name != ".AURINFO": + if file_name != ".AURINFO" and file_name != ".SRCINFO": full_file_name = os.path.join(srcDir, file_name) if (os.path.isfile(full_file_name)): shutil.copy(full_file_name, os.getcwd()) + subprocess.call("diff -q -x '__arch_LH.diff' -x '__changelog' -x '.SRCINFO' -x '.AURINFO' -x 'pkg' -x 'src' -x '*.pkg.tar.xz' -x 'packages-packages' -x 'community-packages' -x %s -x '*-package.log' -x '*-build.log' -x '%s' ./ %s > ./__arch_LH.diff" % (currDirName,filename, srcDir), shell=True) + if os.stat(os.getcwd() + "/__arch_LH.diff").st_size == 0: + subprocess.call("rm __arch_LH.diff", shell=True) else: sys.exit(0) -- cgit v0.12