projects
/
platform
/
upstream
/
swup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f896a23
)
Add error handling for swup failures
39/5739/2
author
William Douglas
<william.douglas@intel.com>
Mon, 8 Jul 2013 20:23:31 +0000
(13:23 -0700)
committer
William Douglas
<william.douglas@intel.com>
Wed, 17 Jul 2013 16:33:26 +0000
(09:33 -0700)
Change-Id: Iff03c22b5fc6a80f41f47460fa1f17ae47a4d0a2
Signed-off-by: William Douglas <william.douglas@intel.com>
system-update.sh
patch
|
blob
|
history
diff --git
a/system-update.sh
b/system-update.sh
index
3c3a4e3
..
ec40cad
100755
(executable)
--- a/
system-update.sh
+++ b/
system-update.sh
@@
-12,6
+12,10
@@
function system_update
UPDATE=$(echo $i | sed -e 's/^[0-9]*-//')
mkdir -p /var/cache/zypp/packages/$UPDATE/rpms
/usr/bin/swup -i $UPDATE
+ if [ "$?" != 0 ]; then
+ echo "Update failed"
+ exit -1
+ fi
rm /var/cache/updatemanager/install/$i
done