aboutsummaryrefslogtreecommitdiff
blob: 9cf113ba0b6e30efb94493557fda7dd1cee9dfd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding:utf-8 -*-

from __future__ import print_function, unicode_literals

import sys


def warn(txt):
	print("repoman: " + txt)


def err(txt):
	warn(txt)
	sys.exit(1)


def caterror(catdir, repodir):
	err(
		"%s is not an official category."
		"  Skipping QA checks in this directory.\n"
		"Please ensure that you add %s to %s/profiles/categories\n"
		"if it is a new category." % (catdir, catdir, repodir))