commit e63ffea8be9ff06ae6c1c9a559de729ad521415b
Author: Elan Ruusamäe <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to