From 0bde4059bc623bcc8d52af517aadb3372b4c5531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 11 Sep 2006 15:49:08 +0000 Subject: [PATCH] s/PISI/PiSi/g --- pisi/__init__.py | 2 +- pisi/actionsapi/get.py | 2 +- pisi/api.py | 10 +++++----- pisi/archive.py | 2 +- pisi/build.py | 4 ++-- pisi/cli/commands.py | 30 +++++++++++++++--------------- pisi/config.py | 4 ++-- pisi/configfile.py | 2 +- pisi/constants.py | 2 +- pisi/dbshelve.py | 2 +- pisi/index.py | 4 ++-- pisi/lockeddbshelve.py | 6 +++--- pisi/operations.py | 2 +- pisi/package.py | 4 ++-- pisi/pgraph.py | 2 +- pisi/specfile.py | 4 ++-- pisi/util.py | 2 +- 17 files changed, 42 insertions(+), 42 deletions(-) diff --git a/pisi/__init__.py b/pisi/__init__.py index 963638a5..440fe011 100644 --- a/pisi/__init__.py +++ b/pisi/__init__.py @@ -20,7 +20,7 @@ __filesdbversion__ = "1.0.5" # yes, this is the real bottleneck __all__ = [ 'api', 'config', 'packagedb', 'installdb', 'search' ] class Exception(Exception): - """Class of exceptions that must be caught and handled within PISI""" + """Class of exceptions that must be caught and handled within PiSi""" def __str__(self): s = u'' for x in self.args: diff --git a/pisi/actionsapi/get.py b/pisi/actionsapi/get.py index 0f34e320..60a963b6 100644 --- a/pisi/actionsapi/get.py +++ b/pisi/actionsapi/get.py @@ -18,7 +18,7 @@ import gettext __trans = gettext.translation('pisi', fallback=True) _ = __trans.ugettext -# PISI Modules +# PiSi Modules import pisi.actionsapi import pisi.context as ctx diff --git a/pisi/api.py b/pisi/api.py index 0cbd92c3..97750f66 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -9,7 +9,7 @@ # # Please read the COPYING file. -"""Top level PISI interfaces. a facade to the entire PISI system""" +"""Top level PiSi interfaces. a facade to the entire PiSi system""" import os import sys @@ -111,7 +111,7 @@ def init(database = True, write = True, ctx.componentdb = None ctx.packagedb = None ctx.sourcedb = None - ctx.ui.debug('PISI API initialized') + ctx.ui.debug('PiSi API initialized') ctx.initialized = True def finalize(): @@ -142,7 +142,7 @@ def finalize(): if ctx.build_leftover and os.path.exists(ctx.build_leftover): os.unlink(ctx.build_leftover) - ctx.ui.debug('PISI API finalized') + ctx.ui.debug('PiSi API finalized') ctx.ui.close() ctx.initialized = False @@ -323,14 +323,14 @@ def check(package): def index(dirs=None, output='pisi-index.xml', skip_sources=False, skip_signing=False, non_recursive=False): - """accumulate PISI XML files in a directory""" + """accumulate PiSi XML files in a directory""" index = Index() index.distribution = None if not dirs: dirs = ['.'] for repo_dir in dirs: repo_dir = str(repo_dir) - ctx.ui.info(_('* Building index of PISI files under %s') % repo_dir) + ctx.ui.info(_('* Building index of PiSi files under %s') % repo_dir) index.index(repo_dir, skip_sources, non_recursive) if skip_signing: diff --git a/pisi/archive.py b/pisi/archive.py index 36c88f8b..d59c612c 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -249,7 +249,7 @@ class MyZipFile(zipfile.ZipFile): class ArchiveZip(ArchiveBase): """ArchiveZip handles zip archives. - Being a zip archive PISI packages also use this class + Being a zip archive PiSi packages also use this class extensively. This class provides unpacking and packing magic for zip archives.""" diff --git a/pisi/build.py b/pisi/build.py index f82a233f..20b7f468 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -177,7 +177,7 @@ class Builder: def build(self): """Build the package in one shot.""" - ctx.ui.status(_("Building PISI source package: %s") % self.spec.source.name) + ctx.ui.status(_("Building PiSi source package: %s") % self.spec.source.name) self.compile_action_script() @@ -775,7 +775,7 @@ class Builder: name = pisi.util.join_path(outdir, name) self.new_packages.append(name) - ctx.ui.info(_("Creating PISI package %s.") % name) + ctx.ui.info(_("Creating PiSi package %s.") % name) pkg = Package(name, 'w') diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index 91efc5c8..260fff5b 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -231,7 +231,7 @@ class Clean(Command): Usage: clean -PISI uses filesystem locks for managing database access. +PiSi uses filesystem locks for managing database access. This command deletes unused locks from the database directory.""" __metaclass__ = autocommand @@ -346,11 +346,11 @@ def ignoredep_opt(self): class Build(Command): - """Build PISI packages + """Build PiSi packages Usage: build [ | ] ... -You can give a URI of the pspec.xml file. PISI will +You can give a URI of the pspec.xml file. PiSi will fetch all necessary files and build the package for you. Alternatively, you can give the name of a source package @@ -431,7 +431,7 @@ unpack, setup, build, install, package. class Emerge(Build): - """Build and install PISI source packages from repository + """Build and install PiSi source packages from repository Usage: emerge ... @@ -493,7 +493,7 @@ class PackageOp(Command): class Install(PackageOp): - """Install PISI packages + """Install PiSi packages Usage: install ... @@ -530,7 +530,7 @@ expanded to package names. class Upgrade(PackageOp): - """Upgrade PISI packages + """Upgrade PiSi packages Usage: Upgrade [ ... ] @@ -634,7 +634,7 @@ expanded to package names. class Remove(PackageOp): - """Remove PISI packages + """Remove PiSi packages Usage: remove ... @@ -831,11 +831,11 @@ If no packages are given, checks all installed packages. class Index(Command): - """Index PISI files in a given directory + """Index PiSi files in a given directory Usage: index ... -This command searches for all PISI files in a directory, collects PISI +This command searches for all PiSi files in a directory, collects PiSi tags from them and accumulates the information in an output XML file, named by default 'pisi-index.xml'. In particular, it indexes both source and binary packages. @@ -929,7 +929,7 @@ class RebuildDb(Command): Usage: rebuilddb [ ... ] -Rebuilds the PISI databases +Rebuilds the PiSi databases If package specs are given, they should be the names of package dirs under /var/lib/pisi @@ -952,7 +952,7 @@ dirs under /var/lib/pisi pisi.api.resurrect_package(package_fn, ctx.get_option('files`')) else: self.init(database=False) - if ctx.ui.confirm(_('Rebuild PISI databases?')): + if ctx.ui.confirm(_('Rebuild PiSi databases?')): pisi.api.rebuild_db(ctx.get_option('files')) self.finalize() @@ -965,7 +965,7 @@ Usage: update-repo [ ... ] : repository name -Synchronizes the PISI databases with the current repository. +Synchronizes the PiSi databases with the current repository. If no repository is given, all repositories are updated. """ __metaclass__ = autocommand @@ -1028,7 +1028,7 @@ NB: We support only local files (e.g., /a/b/c) and http:// URIs at the moment name = 'pardus-1-test' indexuri = 'http://paketler.pardus.org.tr/pardus-1-test/pisi-index.xml.bz2' pisi.api.add_repo(name, indexuri, ctx.get_option('at')) - if ctx.ui.confirm(_('Update PISI database for repository %s?') % name): + if ctx.ui.confirm(_('Update PiSi database for repository %s?') % name): pisi.api.update_repo(name) self.finalize() else: @@ -1090,7 +1090,7 @@ class ListAvailable(Command): Usage: list-available [ ... repon ] -Gives a brief list of PISI packages published in the specified +Gives a brief list of PiSi packages published in the specified repositories. If no repository is specified, we list packages in all repositories. """ @@ -1149,7 +1149,7 @@ class ListComponents(Command): Usage: list-components -Gives a brief list of PISI components published in the +Gives a brief list of PiSi components published in the repositories. """ __metaclass__ = autocommand diff --git a/pisi/config.py b/pisi/config.py index fca6b1bb..e24d5f8f 100644 --- a/pisi/config.py +++ b/pisi/config.py @@ -11,8 +11,8 @@ # """ -PISI Configuration module is used for gathering and providing -regular PISI configurations. +PiSi Configuration module is used for gathering and providing +regular PiSi configurations. """ import os diff --git a/pisi/configfile.py b/pisi/configfile.py index 3cd45e1b..2257e2f1 100644 --- a/pisi/configfile.py +++ b/pisi/configfile.py @@ -10,7 +10,7 @@ # Please read the COPYING file. # -# PISI Configuration File module, obviously, is used to read from the +# PiSi Configuration File module, obviously, is used to read from the # configuration file. Module also defines default values for # configuration parameters. # diff --git a/pisi/constants.py b/pisi/constants.py index c6de6079..bd1e3cb8 100644 --- a/pisi/constants.py +++ b/pisi/constants.py @@ -10,7 +10,7 @@ # Please read the COPYING file. # -"""PISI constants. +"""PiSi constants. If you have a "magic" constant value this is where it should be defined.""" diff --git a/pisi/dbshelve.py b/pisi/dbshelve.py index b9534cde..7fdc034f 100644 --- a/pisi/dbshelve.py +++ b/pisi/dbshelve.py @@ -21,7 +21,7 @@ # 13-Dec-2000: Updated to be used with the new bsddb3 package. # Added DBShelfCursor class. # -# 13-Dec-2005: Minor hacking by exa to make it work better with PISI +# 13-Dec-2005: Minor hacking by exa to make it work better with PiSi #------------------------------------------------------------------------ """Manage shelves of pickled objects using bsddb database files for the diff --git a/pisi/index.py b/pisi/index.py index 7313ae68..ca42d189 100644 --- a/pisi/index.py +++ b/pisi/index.py @@ -10,7 +10,7 @@ # Please read the COPYING file. # -"""PISI source/package index""" +"""PiSi source/package index""" import os @@ -116,7 +116,7 @@ class Index(XmlFile): package = Package(path, 'r') # extract control files util.clean_dir(ctx.config.install_dir()) - package.extract_PISI_files(ctx.config.install_dir()) + package.extract_PiSi_files(ctx.config.install_dir()) md = metadata.MetaData() md.read(os.path.join(ctx.config.install_dir(), ctx.const.metadata_xml)) diff --git a/pisi/lockeddbshelve.py b/pisi/lockeddbshelve.py index 98dd5cf2..84506b66 100644 --- a/pisi/lockeddbshelve.py +++ b/pisi/lockeddbshelve.py @@ -70,7 +70,7 @@ def lock_dbenv(): try: fcntl.flock(ctx.dbenv_lock, fcntl.LOCK_EX | fcntl.LOCK_NB) except IOError: - raise Error(_("Another instance of PISI is running. Only one instance is allowed to modify the PISI database at a time.")) + raise Error(_("Another instance of PiSi is running. Only one instance is allowed to modify the PiSi database at a time.")) # write: write access to database environment # writeversion: would you like to be able @@ -94,7 +94,7 @@ def init_dbenv(write=False, writeversion=False): ctx.dbenv.open(pisi.context.config.db_dir(), flags) ctx.dbenv.set_flags(db.DB_LOG_AUTOREMOVE, 1) # clear inactive logs automatically else: - raise Error(_("Cannot write to PISI database.")) + raise Error(_("Cannot write to PiSi database.")) else: ctx.dbenv = None # read-only access to database @@ -159,7 +159,7 @@ class LockedDBShelf(shelve.DBShelf): try: fcntl.flock(self.lockfile, fcntl.LOCK_EX | fcntl.LOCK_NB) except IOError: - raise Error(_("Another instance of PISI is running. Only one instance is allowed to modify the PISI database at a time.")) + raise Error(_("Another instance of PiSi is running. Only one instance is allowed to modify the PiSi database at a time.")) def close(self): if self.closed: diff --git a/pisi/operations.py b/pisi/operations.py index 919f12e3..0f3e5b21 100644 --- a/pisi/operations.py +++ b/pisi/operations.py @@ -51,7 +51,7 @@ def upgrade_pisi(): if Version(pisi.__filesdbversion__) > Version(old_filesdbversion) or \ Version(pisi.__dbversion__) > Version(old_dbversion): pisi.api.init(database=False) - ctx.ui.info(_("* PISI database version has changed. Rebuilding database...")) + ctx.ui.info(_("* PiSi database version has changed. Rebuilding database...")) pisi.api.rebuild_db() ctx.ui.info(_("* Database rebuild operation is completed succesfully.")) pisi.api.finalize() diff --git a/pisi/package.py b/pisi/package.py index 4dc5a602..34f9bae6 100644 --- a/pisi/package.py +++ b/pisi/package.py @@ -31,7 +31,7 @@ class Error(pisi.Error): class Package: - """PISI Package Class provides access to a pisi package (.pisi + """PiSi Package Class provides access to a pisi package (.pisi file).""" def __init__(self, packagefn, mode='r'): self.filepath = packagefn @@ -100,7 +100,7 @@ class Package: self.impl.unpack_dir_flat(dir, outdir) def extract_PISI_files(self, outdir): - """Extract PISI control files: metadata.xml, files.xml, + """Extract PiSi control files: metadata.xml, files.xml, action scripts, etc.""" self.extract_files([ctx.const.metadata_xml, ctx.const.files_xml], outdir) self.extract_dir('config', outdir) diff --git a/pisi/pgraph.py b/pisi/pgraph.py index d36b43e9..5987fda6 100644 --- a/pisi/pgraph.py +++ b/pisi/pgraph.py @@ -10,7 +10,7 @@ # Please read the COPYING file. # -"""PISI package relation graph that represents the state of packagedb""" +"""PiSi package relation graph that represents the state of packagedb""" import string diff --git a/pisi/specfile.py b/pisi/specfile.py index 4fe7dfca..03f578c9 100644 --- a/pisi/specfile.py +++ b/pisi/specfile.py @@ -11,8 +11,8 @@ # """ - Specfile module is our handler for PSPEC files. PSPEC (PISI SPEC) - files are specification files for PISI source packages. This module + Specfile module is our handler for PSPEC files. PSPEC (PiSi SPEC) + files are specification files for PiSi source packages. This module provides read and write routines for PSPEC files. """ diff --git a/pisi/util.py b/pisi/util.py index a27d8f88..d778708c 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -521,7 +521,7 @@ def strip_directory(top, excludelist=[]): # which causes wrong path entries in *.la files. And these wrong path # entries sometimes triggers compile-time errors or linkage problems. # Instead of patching all these buggy sources and maintain these patches, - # PISI removes wrong paths... + # PiSi removes wrong paths... extension = os.path.splitext(frpath)[1] if extension == ".la": # FIXME: I'm regular expr. idiot, so one can convert this to python...