diff --git a/xbps-src/shutils/metadata.sh b/xbps-src/shutils/metadata.sh
index 8b540236b16..9cf9c03ed23 100644
--- a/xbps-src/shutils/metadata.sh
+++ b/xbps-src/shutils/metadata.sh
@@ -275,7 +275,7 @@ xbps_write_metadata_pkg_real()
installed_size
$(($instsize * 1024))
maintainer
-$(echo $maintainer|sed -e 's|<|[|g;s|>|]|g')
+$(echo $maintainer|sed -e 's|<|\<|g;s|>|\>|g')
short_desc
$short_desc
long_desc