From 19e6c28d41e12fe39c60855b56db47136dee75e9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 30 Aug 2018 18:15:14 +0200 Subject: [PATCH] return 1 on failure --- .drone.yml | 10 ++++++++-- src/whyblocked.cpp | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index de79ccd..9e89db8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,8 +23,11 @@ pipeline: image: gcc:6 pull: true commands: + - echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list + - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release - apt-get update -q - - apt-get install -qy cmake libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev + - apt-get install -qy -t jessie-backports cmake + - apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev - rm -rf build && mkdir -p build && cd build - cmake .. - make VERBOSE=1 @@ -33,8 +36,11 @@ pipeline: image: gcc:5 pull: true commands: + - echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list + - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release - apt-get update -q - - apt-get install -qy cmake libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev + - apt-get install -qy -t jessie-backports cmake + - apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev - rm -rf build && mkdir -p build && cd build - cmake .. - make VERBOSE=1 diff --git a/src/whyblocked.cpp b/src/whyblocked.cpp index 2912b80..e41c0d4 100644 --- a/src/whyblocked.cpp +++ b/src/whyblocked.cpp @@ -178,7 +178,10 @@ const bool details(const string &user, result_details &result) int main(int argc, char *argv[]) { - whyblocked_text::start(); + if (!whyblocked_text::start()) + { + return 1; + } return 0; }