File: azcli_installer.patch

package info (click to toggle)
azure-cli 2.74.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,820,708 kB
  • sloc: python: 1,796,291; sh: 1,329; makefile: 398; cs: 145; javascript: 74; sql: 37; xml: 21
file content (17 lines) | stat: -rw-r--r-- 581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Luca Boccassi <bluca@debian.org>
Description: set AZ_INSTALLER to DEB
 The AZ_INSTALLER variable influences the az upgrade command behaviour.
 For the packaged version, we want it to simply run apt update/upgrade, so
 always set it to DEB.
Forwarded: not-needed
--- a/src/azure-cli/az
+++ b/src/azure-cli/az
@@ -13,7 +13,6 @@
         os.environ.get('PYTHONPATH'),
     ])
 
-if os.environ.get('AZ_INSTALLER') is None:
-    os.environ['AZ_INSTALLER'] = 'PIP'
+os.environ['AZ_INSTALLER'] = 'DEB'
 
 os.execl(sys.executable, sys.executable, '-m', 'azure.cli', *sys.argv[1:])