summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2006-02-16 18:50:15 +0000
committerRoger Leigh <rleigh@debian.org>2006-02-16 18:50:15 +0000
commiteac233b5cf48893398a13e019b1411b0ef7e87f6 (patch)
tree3fb9aaa394e63d6f41ed42bf1d86e9d02cdf9e6c
parent50777b21e1c587fbd9a798aca6505ed3518f2e39 (diff)
downloadschroot-eac233b5cf48893398a13e019b1411b0ef7e87f6.tar.gz
* schroot/sbuild-session.cc (run_child): If it is not possible to
change into the correct directory inside the chroot, print a warning rather than an error.
-rw-r--r--ChangeLog6
-rw-r--r--schroot/sbuild-session.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 15caf0b6..0a2397e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-02-16 Roger Leigh <rleigh@debian.org>
+
+ * schroot/sbuild-session.cc (run_child): If it is not possible to
+ change into the correct directory inside the chroot, print a
+ warning rather than an error.
+
2006-02-07 Roger Leigh <rleigh@debian.org>
* debian/changelog: Bump version to 0.2.3.
diff --git a/schroot/sbuild-session.cc b/schroot/sbuild-session.cc
index 6595c38c..70b31972 100644
--- a/schroot/sbuild-session.cc
+++ b/schroot/sbuild-session.cc
@@ -649,7 +649,7 @@ session::run_child (sbuild::chroot::ptr& session_chroot)
/* chdir to current directory */
if (chdir (cwd.c_str()))
{
- log_error() << format(_("warning: Could not chdir to '%1%': %2%"))
+ log_warning() << format(_("Could not chdir to '%1%': %2%"))
% cwd % strerror(errno)
<< endl;
}