tools/userland-mangler
changeset 464 08f94c414553
parent 452 ef9282f63da3
child 988 6c55a0653898
--- a/tools/userland-mangler	Mon Aug 08 06:18:35 2011 -0700
+++ b/tools/userland-mangler	Mon Aug 08 10:30:52 2011 -0700
@@ -106,8 +106,8 @@
 #
 # mangler.man.stability = (mangler.man.stability)
 # mangler.man.availability = (pkg.fmri)
-# mangler.man.source_url = (pkg.source_url)
-# mangler.man.upstream_url = (pkg.upstream_url)
+# mangler.man.source-url = (pkg.source-url)
+# mangler.man.upstream-url = (pkg.upstream-url)
 #
 def mangle_manpage(manifest, action, text):
 	# manpages must have a taxonomy defined
@@ -124,14 +124,14 @@
 		availability = fmri.pkg_name
 
 	community = None
-	if 'info.upstream_url' in manifest.attributes:
-		community = manifest.attributes['info.upstream_url']
+	if 'info.upstream-url' in manifest.attributes:
+		community = manifest.attributes['info.upstream-url']
 
 	source = None
-	if 'info.source_url' in manifest.attributes:
-		source = manifest.attributes['info.source_url']
-	elif 'info.repository_url' in manifest.attributes:
-		source = manifest.attributes['info.repository_url']
+	if 'info.source-url' in manifest.attributes:
+		source = manifest.attributes['info.source-url']
+	elif 'info.repository-url' in manifest.attributes:
+		source = manifest.attributes['info.repository-url']
 
 	# skip reference only pages
 	if so_re.match(text) is not None: