summaryrefslogtreecommitdiffstats
path: root/support/scripts/brpkgutil.py
diff options
context:
space:
mode:
authorRicardo Martincoski <ricardo.martincoski@gmail.com>2018-01-21 22:44:29 -0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2018-01-29 23:14:24 +0100
commit9ff44852c4fa3df081ec19b14ec5ee9db8d366c0 (patch)
tree89982512be8f9cb27e2530c54043a9eccd3209cd /support/scripts/brpkgutil.py
parentceec22f56994a7d7a370a3807cc4a8f07b3749da (diff)
downloadbuildroot-9ff44852c4fa3df081ec19b14ec5ee9db8d366c0.tar.gz
buildroot-9ff44852c4fa3df081ec19b14ec5ee9db8d366c0.zip
graph-depends: fix code style
Fix these warnings: E122 continuation line missing indentation or outdented E127 continuation line over-indented for visual indent E128 continuation line under-indented for visual indent E202 whitespace before ']' E221 multiple spaces before operator E225 missing whitespace around operator E231 missing whitespace after ',' E302 expected 2 blank lines, found 1 E305 expected 2 blank lines after class or function definition, found 1 E502 the backslash is redundant between brackets E713 test for membership should be 'not in' Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts/brpkgutil.py')
-rw-r--r--support/scripts/brpkgutil.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/support/scripts/brpkgutil.py b/support/scripts/brpkgutil.py
index a0e2352bad..4c99ae9110 100644
--- a/support/scripts/brpkgutil.py
+++ b/support/scripts/brpkgutil.py
@@ -3,11 +3,12 @@
import sys
import subprocess
+
# Execute the "make <pkg>-show-version" command to get the version of a given
# list of packages, and return the version formatted as a Python dictionary.
def get_version(pkgs):
sys.stderr.write("Getting version for %s\n" % pkgs)
- cmd = ["make", "-s", "--no-print-directory" ]
+ cmd = ["make", "-s", "--no-print-directory"]
for pkg in pkgs:
cmd.append("%s-show-version" % pkg)
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True)
@@ -25,9 +26,10 @@ def get_version(pkgs):
version[pkg] = output[i]
return version
+
def _get_depends(pkgs, rule):
sys.stderr.write("Getting dependencies for %s\n" % pkgs)
- cmd = ["make", "-s", "--no-print-directory" ]
+ cmd = ["make", "-s", "--no-print-directory"]
for pkg in pkgs:
cmd.append("%s-%s" % (pkg, rule))
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True)
@@ -49,12 +51,14 @@ def _get_depends(pkgs, rule):
deps[pkg] = pkg_deps
return deps
+
# Execute the "make <pkg>-show-depends" command to get the list of
# dependencies of a given list of packages, and return the list of
# dependencies formatted as a Python dictionary.
def get_depends(pkgs):
return _get_depends(pkgs, 'show-depends')
+
# Execute the "make <pkg>-show-rdepends" command to get the list of
# reverse dependencies of a given list of packages, and return the
# list of dependencies formatted as a Python dictionary.
OpenPOWER on IntegriCloud