[Pkg-bazaar-commits] ./bzr-builddeb/trunk r223: If there is no $SHELL in the environment just call /bin/sh
James Westby
jw+debian at jameswestby.net
Thu May 15 13:29:40 UTC 2008
------------------------------------------------------------
revno: 223
committer: James Westby <jw+debian at jameswestby.net>
branch nick: trunk
timestamp: Wed 2008-03-19 22:26:57 +0000
message:
If there is no $SHELL in the environment just call /bin/sh
modified:
__init__.py
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py 2008-03-19 22:02:39 +0000
+++ b/__init__.py 2008-03-19 22:26:57 +0000
@@ -545,7 +545,10 @@
give_instruction = False
if command is None:
- command = os.environ['SHELL']
+ try:
+ command = os.environ['SHELL']
+ except KeyError:
+ command = "/bin/sh"
give_instruction = True
t = WorkingTree.open_containing('.')[0]
(changelog, larstiq) = find_changelog(t, True)
More information about the Pkg-bazaar-commits
mailing list