From 260729bd34c4b71e133a6b86b7302bef4a424ea2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 10 Apr 2017 17:46:51 +0300 Subject: Adapt to process_error change --- bpkg/archive.cxx | 2 +- bpkg/checksum.cxx | 8 ++++---- bpkg/fetch.cxx | 8 ++++---- bpkg/openssl.cxx | 2 +- bpkg/pkg-unpack.cxx | 2 +- bpkg/satisfaction.cxx | 2 +- bpkg/utility.cxx | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx index 3961aba..4e12e28 100644 --- a/bpkg/archive.cxx +++ b/bpkg/archive.cxx @@ -80,7 +80,7 @@ namespace bpkg { error << "unable to execute " << args[0] << ": " << e; - if (e.child ()) + if (e.child) exit (1); throw failed (); diff --git a/bpkg/checksum.cxx b/bpkg/checksum.cxx index 75f1375..b02ad1c 100644 --- a/bpkg/checksum.cxx +++ b/bpkg/checksum.cxx @@ -57,7 +57,7 @@ namespace bpkg } catch (const process_error& e) { - if (e.child ()) + if (e.child) exit (1); // Fall through. @@ -123,7 +123,7 @@ namespace bpkg } catch (const process_error& e) { - if (e.child ()) + if (e.child) exit (1); // Fall through. @@ -189,7 +189,7 @@ namespace bpkg } catch (const process_error& e) { - if (e.child ()) + if (e.child) exit (1); // Fall through. @@ -325,7 +325,7 @@ namespace bpkg { error << "unable to execute " << sha256_path << ": " << e; - if (e.child ()) + if (e.child) exit (1); throw failed (); diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx index 8a33f07..2c87f6b 100644 --- a/bpkg/fetch.cxx +++ b/bpkg/fetch.cxx @@ -88,7 +88,7 @@ namespace bpkg } catch (const process_error& e) { - if (e.child ()) + if (e.child) exit (1); return false; @@ -207,7 +207,7 @@ namespace bpkg } catch (const process_error& e) { - if (e.child ()) + if (e.child) exit (1); // Fall through. @@ -322,7 +322,7 @@ namespace bpkg } catch (const process_error& e) { - if (e.child ()) + if (e.child) exit (1); // Fall through. @@ -500,7 +500,7 @@ namespace bpkg { error << "unable to execute " << fetch_path << ": " << e; - if (e.child ()) + if (e.child) exit (1); throw failed (); diff --git a/bpkg/openssl.cxx b/bpkg/openssl.cxx index 3268cf8..01f07a0 100644 --- a/bpkg/openssl.cxx +++ b/bpkg/openssl.cxx @@ -51,7 +51,7 @@ namespace bpkg { error << "unable to execute " << args[0] << ": " << e; - if (e.child ()) + if (e.child) exit (1); throw failed (); diff --git a/bpkg/pkg-unpack.cxx b/bpkg/pkg-unpack.cxx index 2d9475e..d4a255c 100644 --- a/bpkg/pkg-unpack.cxx +++ b/bpkg/pkg-unpack.cxx @@ -208,7 +208,7 @@ namespace bpkg { error << "unable to execute " << args[0] << ": " << e; - if (e.child ()) + if (e.child) exit (1); throw failed (); diff --git a/bpkg/satisfaction.cxx b/bpkg/satisfaction.cxx index 7c1541a..6958328 100644 --- a/bpkg/satisfaction.cxx +++ b/bpkg/satisfaction.cxx @@ -154,7 +154,7 @@ namespace bpkg { error << "unable to execute " << args[0] << ": " << e; - if (e.child ()) + if (e.child) exit (1); throw failed (); diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx index 234304e..95e47ba 100644 --- a/bpkg/utility.cxx +++ b/bpkg/utility.cxx @@ -185,7 +185,7 @@ namespace bpkg { error << "unable to execute " << args[0] << ": " << e; - if (e.child ()) + if (e.child) exit (1); throw failed (); -- cgit v1.1