[pitivi] build: Friendly message about missing xdg-app
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] build: Friendly message about missing xdg-app
- Date: Sat, 30 Apr 2016 16:05:23 +0000 (UTC)
commit 53e9ece6fe37be25b32440117271c9f4009cf9e2
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Apr 27 08:37:55 2016 +0200
build: Friendly message about missing xdg-app
Differential Revision: https://phabricator.freedesktop.org/D972
build/xdg-app/pitivi-bundle | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/build/xdg-app/pitivi-bundle b/build/xdg-app/pitivi-bundle
index c79898a..6683064 100755
--- a/build/xdg-app/pitivi-bundle
+++ b/build/xdg-app/pitivi-bundle
@@ -2,9 +2,6 @@
# ------------------------------------------- #
# Repository and bundle setup variables.
-# Those are the only variable to set if you
-# want to create an installer for another
-# application
# ------------------------------------------- #
# The usual application name
@@ -42,6 +39,13 @@ SDK_DEFAULT_REPO_NAME=gnome
# ------------------------------------------- #
+ which xdg-app > /dev/null 2>&1 || (echo "You need to install xdg-app.
+
+https://wiki.gnome.org/Projects/SandboxedApps/Packages
+"; exit 1)
+
+# ------------------------------------------- #
+
# Computation of actual variable values
APPLICATION_REPO_NAME=`xdg-app list-remotes --user -d | grep "$APPLICATION_XDG_APP_REPO" |awk '{ print $1 }'`
APPLICATION_REPO_NAME=${APPLICATION_REPO_NAME:-$APPLICATION_DEFAULT_REPO_NAME}
@@ -53,6 +57,7 @@ SDK_REPO_NAME=${SDK_REPO_NAME:-$SDK_DEFAULT_REPO_NAME}
REPO=$XDGAPP_ENVPATH/xdg-app-repos/$APPLICATION_NAME
# ------------------------------------------- #
+
XDG_APP_INSTALL="xdg-app install --user "
XDG_APP_UPDATE="xdg-app update --user "
XDG_APP_ADD_REMOTE="xdg-app add-remote --no-gpg-verify --user "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]