[packages/chromium-browser/dev-28: 1/6] get-source: avoid making diff if previous version is same
glen
glen at pld-linux.org
Fri May 31 14:16:16 CEST 2013
commit e63ffea8be9ff06ae6c1c9a559de729ad521415b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu May 30 12:12:35 2013 +0300
get-source: avoid making diff if previous version is same
get-source.sh | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/get-source.sh b/get-source.sh
index ff34eeb..8290a21 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -98,11 +98,13 @@ set -x
if [ -e $DIST_DIR/$PACKAGE_NAME-$BASEVER.tar.$EXT ]; then
base=$(readlink -f $DIST_DIR/$PACKAGE_NAME-$BASEVER.tar.$EXT)
current=$DIST_DIR/$PACKAGE_NAME-$VERSION.tar.$EXT
- sh -x $WORK_DIR/make-diff-patch.sh $base $current
- mv $PACKAGE_NAME-$VERSION.patch.xz $DIST_DIR
- # for beta and dev channels, move the diff pointer
- if [ "$CHANNEL" != "stable" ]; then
- ln -sf $PACKAGE_NAME-$VERSION.tar.$EXT $DIST_DIR/$PACKAGE_NAME-$BASEVER.tar.$EXT
+ if [ "$(basename $base)" != "$(basename $current)" ]; then
+ sh -x $WORK_DIR/make-diff-patch.sh $base $current
+ mv $PACKAGE_NAME-$VERSION.patch.xz $DIST_DIR
+ # for beta and dev channels, update the diff pointer
+ if [ "$CHANNEL" != "stable" ]; then
+ ln -sf $PACKAGE_NAME-$VERSION.tar.$EXT $DIST_DIR/$PACKAGE_NAME-$BASEVER.tar.$EXT
+ fi
fi
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/chromium-browser.git/commitdiff/9245150b876ee2d96f57b259ff344071be66224d
More information about the pld-cvs-commit
mailing list