From 69fd9e19d04885bf9e43c3d190e04f959f2db256 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Oct 05 2009 15:03:22 +0000 Subject: Set the dist_tags and content_tags when making metadata. Also add the dist tag for rawhide to the rawhide config --- diff --git a/configs/rawhide.mash b/configs/rawhide.mash index 6a68ef8..ba68d8f 100644 --- a/configs/rawhide.mash +++ b/configs/rawhide.mash @@ -15,3 +15,5 @@ repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/development/%(a repoviewtitle = "Fedora Rawhide - %(arch)s" arches = i386 x86_64 ppc ppc64 delta = True +# Change distro_tags as fedora-release version gets bumped +distro_tags = "cpe:/o:fedoraproject:fedora:11.92" "rawhide" diff --git a/mash/__init__.py b/mash/__init__.py index ffba1b7..2cf0d0a 100644 --- a/mash/__init__.py +++ b/mash/__init__.py @@ -113,6 +113,15 @@ class Mash: md.set_delta(paths) if previous: md.set_previous(previous) + # Setup the distro tags + md.set_distro_tags(self.config.distro_tags) + # Setup the content tags based on what we're making + if arch == 'SRPMS': + md.set_content_tags(['source']) + elif path.endswith(self.config.debuginfo_path): + md.set_content_tags(['debuginfo-%s' % arch]) + else: + md.set_content_tags(['binary-%s' % arch]) md.run(path) self.logger.info("createrepo: finished %s" % (path,)) if repoview and self.config.use_repoview: