projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ee20ad
)
Handle service list correctly
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 1 Apr 2009 03:12:27 +0000
(20:12 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 1 Apr 2009 03:12:27 +0000
(20:12 -0700)
test/list-profiles
patch
|
blob
|
history
diff --git
a/test/list-profiles
b/test/list-profiles
index
4774114
..
9a68d20
100755
(executable)
--- a/
test/list-profiles
+++ b/
test/list-profiles
@@
-17,6
+17,13
@@
for path in properties["Profiles"]:
properties = profile.GetProperties()
for key in properties.keys():
- print " %s = %s" % (key, properties[key])
+ if key in ["Services"]:
+ list = ""
+ for path in properties["Services"]:
+ val = str(path)
+ list = list + val[val.rfind("/") + 1:] + " "
+ print " Services = [ %s]" % (list)
+ else:
+ print " %s = %s" % (key, properties[key])
print