From 2a3769b50958eeec3dc614183c64a209c4a456de Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 26 Jan 2011 07:14:39 +0100 Subject: [PATCH] Remove unused function get_binaries_from_name(). Signed-off-by: Torsten Werner --- daklib/dbconn.py | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index f69fecd1..94ab0d62 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -482,44 +482,6 @@ def get_suites_binary_in(package, session=None): __all__.append('get_suites_binary_in') -@session_wrapper -def get_binaries_from_name(package, version=None, architecture=None, session=None): - """ - Returns list of DBBinary objects for given C{package} name - - @type package: str - @param package: DBBinary package name to search for - - @type version: str or None - @param version: Version to search for (or None) - - @type architecture: str, list or None - @param architecture: Architectures to limit to (or None if no limit) - - @type session: Session - @param session: Optional SQL session object (a temporary one will be - generated if not supplied) - - @rtype: list - @return: list of DBBinary objects for the given name (may be empty) - """ - - q = session.query(DBBinary).filter_by(package=package) - - if version is not None: - q = q.filter_by(version=version) - - if architecture is not None: - if not isinstance(architecture, list): - architecture = [architecture] - q = q.join(Architecture).filter(Architecture.arch_string.in_(architecture)) - - ret = q.all() - - return ret - -__all__.append('get_binaries_from_name') - @session_wrapper def get_binaries_from_source_id(source_id, session=None): """ -- 2.39.5