diff --git a/acc_disable-update-check.patch b/acc_disable-update-check.patch new file mode 100644 index 0000000..2578399 --- /dev/null +++ b/acc_disable-update-check.patch @@ -0,0 +1,42 @@ +diff -Nru azure-cli-core-2.12.1.orig/azure/cli/core/util.py azure-cli-core-2.12.1/azure/cli/core/util.py +--- azure-cli-core-2.12.1.orig/azure/cli/core/util.py 2020-09-28 10:37:30.000000000 +0200 ++++ azure-cli-core-2.12.1/azure/cli/core/util.py 2020-09-30 14:51:49.700308773 +0200 +@@ -331,37 +331,7 @@ + + + def show_updates_available(new_line_before=False, new_line_after=False): +- from azure.cli.core._session import VERSIONS +- import datetime +- +- if VERSIONS[_VERSION_CHECK_TIME]: +- version_check_time = datetime.datetime.strptime(VERSIONS[_VERSION_CHECK_TIME], '%Y-%m-%d %H:%M:%S.%f') +- if datetime.datetime.now() < version_check_time + datetime.timedelta(days=7): +- return +- +- _, updates_available_components = get_az_version_string(use_cache=True) +- if updates_available_components: +- if new_line_before: +- logger.warning("") +- show_updates(updates_available_components) +- if new_line_after: +- logger.warning("") +- VERSIONS[_VERSION_CHECK_TIME] = str(datetime.datetime.now()) +- +- +-def show_updates(updates_available_components): +- if updates_available_components is None: +- logger.warning('Unable to check if your CLI is up-to-date. Check your internet connection.') +- elif updates_available_components: # pylint: disable=too-many-nested-blocks +- if in_cloud_console(): +- warning_msg = 'You have %i updates available. They will be updated with the next build of Cloud Shell.' +- else: +- warning_msg = "You have %i updates available." +- if CLI_PACKAGE_NAME in updates_available_components: +- warning_msg = "{} Consider updating your CLI installation with 'az upgrade'".format(warning_msg) +- logger.warning(warning_msg, len(updates_available_components)) +- else: +- print('Your CLI is up-to-date.') ++ return + + + def get_json_object(json_string): diff --git a/azure-cli-core-2.10.1.tar.gz b/azure-cli-core-2.10.1.tar.gz deleted file mode 100644 index 8acd789..0000000 --- a/azure-cli-core-2.10.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c81fc3fe245b183f7fb249f9dc46f1c3269d1621387c34a628c200d05c6593e2 -size 136889 diff --git a/azure-cli-core-2.12.1.tar.gz b/azure-cli-core-2.12.1.tar.gz new file mode 100644 index 0000000..ae08d81 --- /dev/null +++ b/azure-cli-core-2.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2282e6ae3d366c8d0728dc38c13cd958df053a0e554b8b2c883b809dc664e6a +size 146622 diff --git a/azure-cli-core.changes b/azure-cli-core.changes index 94e8425..9b90ef6 100644 --- a/azure-cli-core.changes +++ b/azure-cli-core.changes @@ -1,10 +1,38 @@ +------------------------------------------------------------------- +Wed Sep 30 12:53:01 UTC 2020 - John Paul Adrian Glaubitz + +- New upstream release + + Version 2.12.1 + + For detailed information about changes see the + HISTORY.rst file provided with this package +- Add patch to disable automatic check for updates (boo#1175289) + + acc_disable-update-check.patch + +------------------------------------------------------------------- +Tue Sep 22 10:47:00 UTC 2020 - John Paul Adrian Glaubitz + +- New upstream release (bsc#1176784, bsc#1176785) + + Version 2.12.0 + + For detailed information about changes see the + HISTORY.rst file provided with this package +- Update Requires from setup.py + +------------------------------------------------------------------- +Mon Aug 31 12:10:04 UTC 2020 - John Paul Adrian Glaubitz + +- New upstream release + + Version 2.11.1 + + For detailed information about changes see the + HISTORY.rst file provided with this package +- Update Requires from setup.py + ------------------------------------------------------------------- Tue Aug 18 21:25:40 UTC 2020 - John Paul Adrian Glaubitz - New upstream release (boo#1175289) + Version 2.10.1 + For detailed information about changes see the - HISTORY.txt file provided with this package + HISTORY.rst file provided with this package - Update Requires from setup.py ------------------------------------------------------------------- @@ -13,7 +41,7 @@ Mon Jul 20 14:42:00 UTC 2020 - John Paul Adrian Glaubitz @@ -76,7 +104,7 @@ Tue Jan 7 10:52:54 UTC 2020 - John Paul Adrian Glaubitz = 3.0.0 BuildRequires: python3-mock BuildRequires: python3-setuptools Requires: azure-cli-nspkg -Requires: azure-cli-telemetry +Requires: azure-cli-telemetry >= 1.0.6 Requires: python3-PyJWT Requires: python3-PyYAML < 6.0 Requires: python3-PyYAML >= 5.2 @@ -41,9 +42,9 @@ Requires: python3-adal >= 1.2.3 Requires: python3-argcomplete < 2.0 Requires: python3-argcomplete >= 1.8 Requires: python3-azure-mgmt-core < 2.0.0 -Requires: python3-azure-mgmt-core >= 1.0.0 +Requires: python3-azure-mgmt-core >= 1.2.0 Requires: python3-azure-mgmt-resource < 11.0.0 -Requires: python3-azure-mgmt-resource >= 10.1.0 +Requires: python3-azure-mgmt-resource >= 10.2.0 Requires: python3-azure-nspkg >= 3.0.0 Requires: python3-colorama >= 0.4.1 Requires: python3-humanfriendly < 9.0 @@ -79,6 +80,7 @@ Microsoft Azure CLI Core Module %prep %setup -q -n azure-cli-core-%{version} +%patch0 -p1 %build install -m 644 %{SOURCE1} %{_builddir}/azure-cli-core-%{version}