aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-10-23 01:09:49 +0200
committerMarkus Ullmann <jokey@gentoo.org>2007-10-23 01:10:13 +0200
commitc421d4fa03c730f6fc3d2de86f1965545308b5aa (patch)
tree17bf719ddbc0c6104b8504ebec9e811399fde90f /dbgenerator
parentFix a bug in _pretty_changelog_pass3 for a non-matching changelog. (diff)
downloadpackages-3-c421d4fa03c730f6fc3d2de86f1965545308b5aa.tar.gz
packages-3-c421d4fa03c730f6fc3d2de86f1965545308b5aa.tar.bz2
packages-3-c421d4fa03c730f6fc3d2de86f1965545308b5aa.zip
Whitespace fixes
Diffstat (limited to 'dbgenerator')
-rw-r--r--dbgenerator/backend.py2
-rw-r--r--dbgenerator/core.py8
-rw-r--r--dbgenerator/database.py8
3 files changed, 9 insertions, 9 deletions
diff --git a/dbgenerator/backend.py b/dbgenerator/backend.py
index 518ecf8..7289ead 100644
--- a/dbgenerator/backend.py
+++ b/dbgenerator/backend.py
@@ -151,7 +151,7 @@ class domain_repo_interface:
keyword_dict[keyword[1:]] = pkgmask_prefix + '~'
else:
keyword_dict[keyword] = pkgmask_prefix + '+'
-
+
efilename = package + "-" + pkg.fullver + ".ebuild"
epath = pjoin(self.work_repo_location, category, package, efilename)
mtime = int(os.stat(epath).st_mtime)
diff --git a/dbgenerator/core.py b/dbgenerator/core.py
index b39e0de..dbcc113 100644
--- a/dbgenerator/core.py
+++ b/dbgenerator/core.py
@@ -47,13 +47,13 @@ def process_metadata(backend, database, category, package):
# get general metadata
description, homepage, pkglicense = \
backend.get_app_metadata((category, package))
-
+
full_changelog = backend.get_changelog((category, package))
changelog = latest_changelog(full_changelog)
-
+
#store metadata
- database.add_metadata(category, package,
- description, homepage,
+ database.add_metadata(category, package,
+ description, homepage,
pkglicense, changelog)
def main():
diff --git a/dbgenerator/database.py b/dbgenerator/database.py
index 0b0453f..aafbb71 100644
--- a/dbgenerator/database.py
+++ b/dbgenerator/database.py
@@ -49,8 +49,8 @@ class SQLPackageDatabase(object):
sql = {}
- tables = ['categories', 'packages', 'metadata',
- 'versions', 'verbumps', 'keywords',
+ tables = ['categories', 'packages', 'metadata',
+ 'versions', 'verbumps', 'keywords',
'arches', 'schema_info']
sql['CREATE_categories'] = """
@@ -188,7 +188,7 @@ class SQLPackageDatabase(object):
VALUES
(?, ?, ?, ?, ?)
"""
- def add_metadata(self, category, pn,
+ def add_metadata(self, category, pn,
description, homepage, pkglicense, changelog):
"""Replace the metadata for the CP with new metadata"""
cp = self.find_cp(category, pn)
@@ -414,7 +414,7 @@ class SQLPackageDatabase(object):
FROM schema_info
"""
def schema_is_current(self):
- """Check if the database schema version matches the
+ """Check if the database schema version matches the
version expected by the sourcecode"""
try:
sql = self.sql['SELECT_schema_is_current']