def fingerprint_internal(target): if not is_internal(target): raise ValueError( 'Expected an internal target for fingerprinting, got %s' % target) pushdb, _, _ = get_db(target) _, _, _, fingerprint = pushdb.as_jar_with_version(target) return fingerprint or '0.0.0'
def is_classpath(t): return is_internal(t) and any( jar for jar in t.jar_dependencies if jar.rev)
def is_classpath(t): return is_internal(t) and any(jar for jar in t.jar_dependencies if jar.rev)
def is_classpath(target): return is_jar(target) or ( is_internal(target) and any(jar for jar in target.jar_dependencies if jar.rev) )
def not_internal(target): return not is_internal(target)
def exportable(target): return target in candidates and is_exported(target) and is_internal(target)
def fingerprint_internal(target): if not is_internal(target): raise ValueError('Expected an internal target for fingerprinting, got %s' % target) pushdb, _, _ = get_db(target) _, _, _, fingerprint = pushdb.as_jar_with_version(target) return fingerprint or '0.0.0'
def exportable(target): return target in candidates and is_exported( target) and is_internal(target)
def is_classpath(target): return is_jar(target) or (is_internal(target) and any( jar for jar in target.jar_dependencies if jar.rev))