diff options
| author | Adrian Dudau <adrian.dudau@enea.com> | 2016-01-25 13:28:22 +0100 |
|---|---|---|
| committer | Adrian Dudau <adrian.dudau@enea.com> | 2016-01-25 13:28:53 +0100 |
| commit | f2472f452cc1a79000154df9a918214e7c206ed1 (patch) | |
| tree | 62a422438fd863f1ac6542ed118b72ee33ed8ebf /recipes-devtools/python/python-smartpm/smart-already-installed-message.patch | |
| parent | 5189d80c25f426786e2f54b3ec6484291b4a0abe (diff) | |
| parent | a43271bc9283128d82c6542c70378a52a05d35cf (diff) | |
| download | meta-el-common-f2472f452cc1a79000154df9a918214e7c206ed1.tar.gz | |
Merge branch 'dizzy'
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-devtools/python/python-smartpm/smart-already-installed-message.patch')
| -rw-r--r-- | recipes-devtools/python/python-smartpm/smart-already-installed-message.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/recipes-devtools/python/python-smartpm/smart-already-installed-message.patch b/recipes-devtools/python/python-smartpm/smart-already-installed-message.patch new file mode 100644 index 0000000..e264de8 --- /dev/null +++ b/recipes-devtools/python/python-smartpm/smart-already-installed-message.patch | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | |||
| 2 | From a74a9a9eb9d75964a0e978950e8b191d7a18d763 Mon Sep 17 00:00:00 2001 | ||
| 3 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
| 4 | Date: Fri, 5 Jun 2015 17:07:16 +0100 | ||
| 5 | Subject: [PATCH] smart: change "is already installed" message from warning to | ||
| 6 | info | ||
| 7 | |||
| 8 | This doesn't need to be a warning. | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
| 13 | --- | ||
| 14 | smart/commands/install.py | 4 ++-- | ||
| 15 | smart/interfaces/text/interactive.py | 2 +- | ||
| 16 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/smart/commands/install.py b/smart/commands/install.py | ||
| 19 | index 6ef9682..80d456b 100644 | ||
| 20 | --- a/smart/commands/install.py | ||
| 21 | +++ b/smart/commands/install.py | ||
| 22 | @@ -152,7 +152,7 @@ def main(ctrl, opts): | ||
| 23 | for obj in results: | ||
| 24 | for pkg in obj.packages: | ||
| 25 | if pkg.installed: | ||
| 26 | - iface.warning(_("%s (for %s) is already installed") | ||
| 27 | + iface.info(_("%s (for %s) is already installed") | ||
| 28 | % (pkg, arg)) | ||
| 29 | installed = True | ||
| 30 | break | ||
| 31 | @@ -184,7 +184,7 @@ def main(ctrl, opts): | ||
| 32 | for name in names: | ||
| 33 | pkg = names[name][0] | ||
| 34 | if pkg.installed: | ||
| 35 | - iface.warning(_("%s is already installed") % pkg) | ||
| 36 | + iface.info(_("%s is already installed") % pkg) | ||
| 37 | else: | ||
| 38 | trans.enqueue(pkg, INSTALL) | ||
| 39 | |||
| 40 | diff --git a/smart/interfaces/text/interactive.py b/smart/interfaces/text/interactive.py | ||
| 41 | index 9865584..190867b 100644 | ||
| 42 | --- a/smart/interfaces/text/interactive.py | ||
| 43 | +++ b/smart/interfaces/text/interactive.py | ||
| 44 | @@ -278,7 +278,7 @@ class Interpreter(Cmd): | ||
| 45 | for name in names: | ||
| 46 | pkg = names[name][0] | ||
| 47 | if pkg.installed: | ||
| 48 | - iface.warning(_("%s is already installed") % pkg) | ||
| 49 | + iface.info(_("%s is already installed") % pkg) | ||
| 50 | else: | ||
| 51 | found = True | ||
| 52 | transaction.enqueue(pkg, INSTALL) | ||
| 53 | -- | ||
| 54 | 2.1.0 | ||
