@@ -77,7 +77,8 @@ def list_cls(self, *package_classes, **filters):
77
77
for pkg_name in pc .names :
78
78
print (pkg_name )
79
79
80
- def properties (self , * package_classes , props = ['path' , 'version_with_patchlevel' , 'type' , 'source' , 'trees' ]):
80
+ def properties (self , * package_classes , props = ['path' , 'version_with_patchlevel' , 'type' , 'source' , 'trees' ],
81
+ format = 'plain' ):
81
82
"""
82
83
Show the properties of given packages
83
84
@@ -92,14 +93,19 @@ def properties(self, *package_classes, props=['path', 'version_with_patchlevel',
92
93
pc = PackageClass (* package_classes )
93
94
for package_name in pc .names :
94
95
package = Package (package_name )
96
+ if format == 'plain' :
97
+ print ("{0}:" .format (package_name ))
95
98
for p in props :
96
99
value = getattr (package , p )
97
100
if value is None :
98
101
if p .startswith ('version' ):
99
102
value = 'none'
100
103
else :
101
104
value = ''
102
- print ("{0}_{1}='{2}'" .format (p , package_name , value ))
105
+ if format == 'plain' :
106
+ print (" {0:28} {1}" .format (p + ":" , value ))
107
+ else :
108
+ print ("{0}_{1}='{2}'" .format (p , package_name , value ))
103
109
104
110
def name (self , tarball_filename ):
105
111
"""
0 commit comments