projects
/
hvlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1040a1
)
Fix bug when fetching unavailable package
author
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 13 Dec 2014 16:05:25 +0000
(11:05 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 27 Dec 2014 05:01:50 +0000
(
00:01
-0500)
functions/fpkg
patch
|
blob
|
history
diff --git
a/functions/fpkg
b/functions/fpkg
index
133b123
..
673299b
100644
(file)
--- a/
functions/fpkg
+++ b/
functions/fpkg
@@
-640,10
+640,15
@@
fpkg()
rm ${DEST_FILE}
fi
- if [ !
-f ${DEST_FILE} ]; then
+ if [ ! -f ${DEST_FILE} ]; then
# Fetch package
set +e
static_getpkg ${SRC_FILENAME} ${URL} ${FILE_EXT}
+ rc=$?
+
+ if [ ${rc} -ne 0 ]; then
+ return ${rc};
+ fi
set -e
# Move file if source filename is not equal to package name and/or