Hello community,

here is the log from the commit of package tumbleweed-cli for openSUSE:Factory 
checked in at 2019-03-10 09:38:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tumbleweed-cli (Old)
 and      /work/SRC/openSUSE:Factory/.tumbleweed-cli.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tumbleweed-cli"

Sun Mar 10 09:38:08 2019 rev:6 rq:682649 version:0.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/tumbleweed-cli/tumbleweed-cli.changes    
2018-10-22 11:25:04.203052593 +0200
+++ /work/SRC/openSUSE:Factory/.tumbleweed-cli.new.28833/tumbleweed-cli.changes 
2019-03-10 09:38:14.116135150 +0100
@@ -1,0 +2,8 @@
+Thu Mar 07 22:18:32 UTC 2019 - [email protected]
+
+- Update to version 0.3.2:
+  * switch: verify latest version was determined otherwise exit.
+  * Include --fail in all curl calls.
+  * tumbleweed_unmigrate(): correct indentation of condition.
+
+-------------------------------------------------------------------

Old:
----
  tumbleweed-cli-0.3.1.tar.xz

New:
----
  tumbleweed-cli-0.3.2.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tumbleweed-cli.spec ++++++
--- /var/tmp/diff_new_pack.klNPSc/_old  2019-03-10 09:38:14.896134963 +0100
+++ /var/tmp/diff_new_pack.klNPSc/_new  2019-03-10 09:38:14.900134962 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package tumbleweed-cli
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           tumbleweed-cli
-Version:        0.3.1
+Version:        0.3.2
 Release:        0
 Summary:        Command line interface for interacting with tumbleweed 
snapshots
 License:        GPL-2.0-only

++++++ _service ++++++
--- /var/tmp/diff_new_pack.klNPSc/_old  2019-03-10 09:38:14.928134955 +0100
+++ /var/tmp/diff_new_pack.klNPSc/_new  2019-03-10 09:38:14.928134955 +0100
@@ -1,7 +1,7 @@
 <services>
   <service name="tar_scm" mode="disabled">
     <param name="versionformat">@PARENT_TAG@</param>
-    <param name="revision">refs/tags/0.3.1</param>
+    <param name="revision">refs/tags/0.3.2</param>
     <param name="url">https://github.com/boombatower/tumbleweed-cli.git</param>
     <param name="scm">git</param>
     <param name="changesgenerate">enable</param>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.klNPSc/_old  2019-03-10 09:38:14.956134948 +0100
+++ /var/tmp/diff_new_pack.klNPSc/_new  2019-03-10 09:38:14.956134948 +0100
@@ -1,6 +1,6 @@
 <servicedata>
   <service name="tar_scm">
     <param name="url">https://github.com/boombatower/tumbleweed-cli.git</param>
-    <param 
name="changesrevision">84796cf3168905ae78fad2aa080efad2ee3ff9b8</param>
+    <param 
name="changesrevision">795deb1062fe369649ea1884aa31353fca7e966d</param>
   </service>
 </servicedata>

++++++ tumbleweed-cli-0.3.1.tar.xz -> tumbleweed-cli-0.3.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tumbleweed-cli-0.3.1/tumbleweed 
new/tumbleweed-cli-0.3.2/tumbleweed
--- old/tumbleweed-cli-0.3.1/tumbleweed 2018-10-19 22:20:10.000000000 +0200
+++ new/tumbleweed-cli-0.3.2/tumbleweed 2019-03-07 23:13:00.000000000 +0100
@@ -113,7 +113,7 @@
 
 tumbleweed_latest()
 {
-  curl --silent "$URL/latest"
+  curl --fail --silent "$URL/latest"
 }
 
 tumbleweed_target()
@@ -128,7 +128,7 @@
 
 tumbleweed_list()
 {
-  curl --silent "$URL/list"
+  curl --fail --silent "$URL/list"
 }
 
 tumbleweed_update()
@@ -158,6 +158,10 @@
     fi
   else
     local version="$(tumbleweed_latest)"
+    if [ -z "$version" ] ; then
+      echo "Unable to determine latest version (likely due to network 
connection issue)"
+      exit 1
+    fi
     echo "choosing latest version"
   fi
 
@@ -220,7 +224,7 @@
 
   # Issue notice of official hosting and migration if target is available.
   if [ $MIGRATED -eq 0 ] && \
-    curl --silent "$URL_POST_MIGRATE/list" | grep -Fx "$(tumbleweed_target)" > 
/dev/null ; then
+    curl --fail --silent "$URL_POST_MIGRATE/list" | grep -Fx 
"$(tumbleweed_target)" > /dev/null ; then
     echo "NOTICE: Official snapshot hosting is now available. The unofficial 
hosting is" >&2
     echo "        deprecated and will be discontinued at a future date. 
Consider" >&2
     echo "        migrating to the official hosting via \`tumbleweed 
migrate\`." >&2
@@ -242,8 +246,8 @@
   echo "unofficial hosting that you are currently using."
   echo
 
-  local count_pre=$(curl --silent "$URL_PRE_MIGRATE/list" | wc -l)
-  local count_post=$(curl --silent "$URL_POST_MIGRATE/list" | wc -l)
+  local count_pre=$(curl --fail --silent "$URL_PRE_MIGRATE/list" | wc -l)
+  local count_post=$(curl --fail --silent "$URL_POST_MIGRATE/list" | wc -l)
   echo "- unofficial, $URL_PRE_MIGRATE: $count_pre snapshots"
   echo "- official, $URL_POST_MIGRATE: $count_post snapshots"
   echo
@@ -273,7 +277,7 @@
 
 tumbleweed_unmigrate()
 {
-    if [ ! -d "$REPOS_DIR/.migrated" ] ; then
+  if [ ! -d "$REPOS_DIR/.migrated" ] ; then
     echo "nothing to unmigrate"
     exit 1
   fi


Reply via email to