diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-02-06 18:47:54 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-02-06 18:47:54 (GMT) |
commit | eab5e18c4c64de1d4922e2b2263c9954aacd11c1 (patch) | |
tree | 0b4fbc445614da399f07279152ddfa9db766d28b /build_tools/bin | |
parent | a76d4e38408e2d24de5c6bfe213833db1676a056 (diff) | |
download | linhes_dev-eab5e18c4c64de1d4922e2b2263c9954aacd11c1.zip |
chk_arch_pkg.py: add testing and community-testing repos
Diffstat (limited to 'build_tools/bin')
-rwxr-xr-x | build_tools/bin/chk_arch_pkg.py | 9 |
1 files 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) |