Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1--- a/awslimitchecker/version.py 2+++ b/awslimitchecker/version.py 3@@ -111,32 +106,5 @@ def _get_version_info(): 4 :returns: awslimitchecker version 5 :rtype: str 6 """ 7- if os.environ.get('VERSIONCHECK_DEBUG', '') != 'true': 8- for lname in ['versionfinder', 'pip', 'git']: 9- l = logging.getLogger(lname) 10- l.setLevel(logging.CRITICAL) 11- l.propagate = True 12- try: 13- vinfo = find_version('awslimitchecker') 14- dirty = '' 15- if vinfo.git_is_dirty: 16- dirty = '*' 17- tag = vinfo.git_tag 18- if tag is not None: 19- tag += dirty 20- commit = vinfo.git_commit 21- if commit is not None: 22- if len(commit) > 7: 23- commit = commit[:8] 24- commit += dirty 25- return AWSLimitCheckerVersion( 26- vinfo.version, 27- vinfo.url, 28- tag=tag, 29- commit=commit 30- ) 31- except Exception: 32- logger.exception("Error checking installed version; this installation " 33- "may not be in compliance with the AGPLv3 license:") 34 # fall back to returning just the hard-coded release information 35 return AWSLimitCheckerVersion(_VERSION, _PROJECT_URL)