tools/userland-mangler
changeset 379 c6a17bba1da3
parent 181 87e11e685b1f
child 448 e07a264a6e3d
equal deleted inserted replaced
378:f0b61ed1d10d 379:c6a17bba1da3
   119 
   119 
   120 	if 'pkg.fmri' in manifest.attributes:
   120 	if 'pkg.fmri' in manifest.attributes:
   121 		fmri = pkg.fmri.PkgFmri(manifest.attributes['pkg.fmri'])
   121 		fmri = pkg.fmri.PkgFmri(manifest.attributes['pkg.fmri'])
   122 		availability = fmri.pkg_name
   122 		availability = fmri.pkg_name
   123 
   123 
       
   124 	community = None
   124 	if 'info.upstream_url' in manifest.attributes:
   125 	if 'info.upstream_url' in manifest.attributes:
   125 		community = manifest.attributes['info.upstream_url']
   126 		community = manifest.attributes['info.upstream_url']
   126 
   127 
       
   128 	source = None
   127 	if 'info.source_url' in manifest.attributes:
   129 	if 'info.source_url' in manifest.attributes:
   128 		source = manifest.attributes['info.source_url']
   130 		source = manifest.attributes['info.source_url']
       
   131 	elif 'info.repository_url' in manifest.attributes:
       
   132 		source = manifest.attributes['info.repository_url']
   129 
   133 
   130 	# create a directory to write to
   134 	# create a directory to write to
   131 	destdir = os.path.dirname(dest)
   135 	destdir = os.path.dirname(dest)
   132 	if not os.path.exists(destdir):
   136 	if not os.path.exists(destdir):
   133 		os.makedirs(destdir)
   137 		os.makedirs(destdir)