Gentoo Archives: gentoo-commits

From: Arfrever Frehtes Taifersar Arahesis <Arfrever@××××××.Org>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/
Date: Mon, 02 Dec 2013 15:18:52
Message-Id: 1385997474.5b8962b55cfe4a529861cf5400266daa25e8f4e6.arfrever@gentoo
1 commit: 5b8962b55cfe4a529861cf5400266daa25e8f4e6
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Mon Dec 2 15:17:54 2013 +0000
4 Commit: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
5 CommitDate: Mon Dec 2 15:17:54 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=5b8962b5
7
8 portageq: Print deprecation warnings for deprecated commands.
9
10 ---
11 bin/portageq | 6 ++++++
12 1 file changed, 6 insertions(+)
13
14 diff --git a/bin/portageq b/bin/portageq
15 index 3dc5c28..a50b805 100755
16 --- a/bin/portageq
17 +++ b/bin/portageq
18 @@ -677,7 +677,9 @@ def repos_config(argv):
19 def portdir(_argv):
20 """
21 Returns the PORTDIR path.
22 + Deprecated in favor of repositories_configuration command.
23 """
24 + print("WARNING: 'portageq portdir' is deprecated. Use 'portageq repositories_configuration' instead.", file=sys.stderr)
25 print(portage.settings["PORTDIR"])
26
27
28 @@ -698,7 +700,9 @@ def config_protect_mask(_argv):
29 def portdir_overlay(_argv):
30 """
31 Returns the PORTDIR_OVERLAY path.
32 + Deprecated in favor of repositories_configuration command.
33 """
34 + print("WARNING: 'portageq portdir_overlay' is deprecated. Use 'portageq repositories_configuration' instead.", file=sys.stderr)
35 print(portage.settings["PORTDIR_OVERLAY"])
36
37
38 @@ -737,6 +741,8 @@ def envvar(argv):
39 return 2
40
41 for arg in argv:
42 + if arg in ("PORTDIR", "PORTDIR_OVERLAY", "SYNC"):
43 + print("WARNING: 'portageq envvar %s' is deprecated. Use 'portageq repositories_configuration' instead." % arg, file=sys.stderr)
44 if verbose:
45 print(arg + "=" + portage._shell_quote(portage.settings[arg]))
46 else: