jhbuild r2133 - in trunk: . jhbuild/frontends
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r2133 - in trunk: . jhbuild/frontends
- Date: Sat, 14 Jun 2008 18:37:36 +0000 (UTC)
Author: fpeters
Date: Sat Jun 14 18:37:36 2008
New Revision: 2133
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2133&view=rev
Log:
* jhbuild/frontends/terminal.py: set back working directory after the
user comes back from the shell. (closes: #534784, patch by packz).
Modified:
trunk/ChangeLog
trunk/jhbuild/frontends/terminal.py
Modified: trunk/jhbuild/frontends/terminal.py
==============================================================================
--- trunk/jhbuild/frontends/terminal.py (original)
+++ trunk/jhbuild/frontends/terminal.py Sat Jun 14 18:37:36 2008
@@ -274,12 +274,14 @@
elif val == '3':
return 'fail'
elif val == '4':
+ cwd = os.getcwd()
try:
os.chdir(module.get_builddir(self))
except OSError:
os.chdir(self.config.checkoutroot)
uprint(_('exit shell to continue with build'))
os.system(user_shell)
+ os.chdir(cwd) # restor working directory
else:
try:
val = int(val)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]