apt-zephyr: Don’t send empty zephyrs for no changes.
authorAnders Kaseorg <andersk@mit.edu>
Sun, 21 Mar 2010 01:02:53 +0000 (21:02 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Sun, 21 Mar 2010 01:07:35 +0000 (21:07 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
apt-zephyr/apt-zephyr

index 72c217ec77f3effdae76f07cb97eb905c44e37bc..11a9bb7a3b385b4dce57a59cf17f63b89272eb77 100755 (executable)
@@ -87,14 +87,14 @@ parse_v2 ()
 read -r line
 case "$line" in
     'VERSION 2')
-       parse_v2
+       parse_v2 | send_zephyr
        ;;
     'VERSION *')
-       echo "$0: unrecognized version: $line"
+       echo "$0: unrecognized version: $line" | send-zephyr
        ;;
     '')
        ;;
     *)
-       (echo "$line"; cat) | parse_v1
+       (echo "$line"; cat) | parse_v1 | send_zephyr
        ;;
-esac | send_zephyr
+esac