From: Michael Tremer Date: Fri, 25 Feb 2011 20:00:54 +0000 (+0100) Subject: Remove unused function tag_db. X-Git-Tag: 0.9.3~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92b9812e1b36bc1c7c31bddac1ea92e791d43bb5;p=pakfire.git Remove unused function tag_db. --- diff --git a/pakfire/index.py b/pakfire/index.py index 47d649b05..631e94da1 100644 --- a/pakfire/index.py +++ b/pakfire/index.py @@ -183,20 +183,6 @@ class InstalledIndex(Index): def add_package(self, pkg, reason=None): return self.db.add_package(pkg, reason) - def tag_db(self): - # XXX DEPRECATED - self.db.close() - - # Calculate a filename that is based on the hash of the file - # (just to trick proxies, etc.) - filename = util.calc_hash1(self.db.filename) + "-packages.db" - - # Copy the database to the right place. - shutil.copy2(self.db.filename, os.path.join(self.repo.path, filename)) - - # Reopen the database. - self.db = database.RemotePackageDatabase(self.pakfire, self.db.filename) - class DatabaseIndex(InstalledIndex): def __init__(self, pakfire, repo):