Rev 202: Removed arch_path from pqm script. in http://bzr.daniel-watkins.co.uk/pqm/vcs-script

Daniel Watkins daniel at daniel-watkins.co.uk
Tue Jul 8 06:06:15 BST 2008


At http://bzr.daniel-watkins.co.uk/pqm/vcs-script

------------------------------------------------------------
revno: 202
revision-id: daniel at daniel-watkins.co.uk-20080708050505-go8txth8cvkxi767
parent: d.m.watkins at warwick.ac.uk-20080704021026-kb3asu3n7jeryewa
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: vcs-script
timestamp: Tue 2008-07-08 06:05:05 +0100
message:
  Removed arch_path from pqm script.
-------------- next part --------------
=== modified file 'bin/pqm'
--- a/bin/pqm	2008-07-02 05:51:26 +0000
+++ b/bin/pqm	2008-07-08 05:05:05 +0000
@@ -217,7 +217,6 @@
         sys.exit(1)
     sys.exit(0)
 
-arch_path = 'baz'
 arch_impl = None
 logfile_name = 'pqm.log'
 default_mail_log_level = logging.ERROR
@@ -314,16 +313,6 @@
 logger.debug("Reading config files: %s" % (configfile_names,))
 configp.read(configfile_names)
 
-if configp.has_option('DEFAULT', 'arch_path'):
-    arch_path = configp.get('DEFAULT', 'arch_path')
-elif configp.has_option('DEFAULT', 'tlapath'): 
-    logger.warn("Option 'tlapath' is deprecated")
-    arch_path = configp.get('DEFAULT', 'tlapath')
-
-if os.access(arch_path, os.X_OK):
-    logger.error("Can't execute \"%s\", please fix arch_path" % (arch_path,))
-    sys.exit(1)
-
 # ugly transitional code
 pqm.logger = logger
 if configp.has_option('DEFAULT', 'arch_impl'):
@@ -341,7 +330,6 @@
         sys.exit(1)
 # FIXME: move this into a nicer place.
 pqm.Command.arch_impl = arch_impl
-pqm.Command.arch_path = arch_path
 
 pqm.gpgv_path = configp.get_option('DEFAULT', 'gpgv_path', 'gpgv')
 myname = configp.get_option('DEFAULT', 'myname', 'Arch Patch Queue Manager')



More information about the bazaar-commits mailing list