From 69b4e9d0088ec52b68074763b9b25f3ccc1dcf79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 24 Apr 2013 23:57:30 +0200 Subject: [PATCH 1/2] mark spacewalk.releng namespace as obsolete I done s/spacewalk.releng./tito./ in spacewalk.git, but it may reside in some (private) branches. So let keep it for little bit more releases, but print warnings. --- src/tito/common.py | 1 + tito.props.5.asciidoc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tito/common.py b/src/tito/common.py index 76809e7..ed17f1a 100644 --- a/src/tito/common.py +++ b/src/tito/common.py @@ -543,6 +543,7 @@ def normalize_class_name(name): """ look_for = "spacewalk.releng." if name.startswith(look_for): + sys.stderr.write("Warning: spacewalk.releng.* namespace in tito.props is obsolete. Use tito.* instead.\n") name = "%s%s" % ("tito.", name[len(look_for):]) return name diff --git a/tito.props.5.asciidoc b/tito.props.5.asciidoc index 5989568..82f37a7 100644 --- a/tito.props.5.asciidoc +++ b/tito.props.5.asciidoc @@ -177,7 +177,7 @@ EXAMPLE ------- [globalconfig] default_builder = tito.builder.Builder - default_tagger = spacewalk.releng.tagger.VersionTagger + default_tagger = tito.tagger.VersionTagger [koji] autobuild_tags = dist-5E-sw-1.2-candidate dist-f12-sw-1.2-candidate dist-f13-sw-1.2-candidate From b8f034c37f05212fbbb30a541f78845f31eda7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Thu, 25 Apr 2013 00:04:08 +0200 Subject: [PATCH 2/2] mark build.py.props as obsolete --- src/tito/cli.py | 1 + src/tito/rheltagger.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tito/cli.py b/src/tito/cli.py index 705b00a..5c42ffc 100644 --- a/src/tito/cli.py +++ b/src/tito/cli.py @@ -236,6 +236,7 @@ class BaseCliModule(object): current_props_file = os.path.join(os.getcwd(), "build.py.props") if (os.path.exists(current_props_file)): + sys.stderr.write("Warning: build.py.props file is obsolete. Please rename it to 'tito.props'.\n") properties_file = current_props_file # Check for a build.py.props back when this tag was created and use it diff --git a/src/tito/rheltagger.py b/src/tito/rheltagger.py index dfcafd9..fb49fab 100644 --- a/src/tito/rheltagger.py +++ b/src/tito/rheltagger.py @@ -15,7 +15,7 @@ class RHELTagger(ReleaseTagger): Used for: - Red Hat Enterprise Linux - If you want it put in tito.pros (global) or localy in build.py.props: + If you want it put in tito.pros: [buildconfig] tagger = tito.rheltagger.RHELTagger """