diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-05-16 21:17:56 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-05-16 21:17:56 +0000 |
commit | ed3190ffdf8b74b5ee2fce18f079784496469816 (patch) | |
tree | 2d90f8757e981523e2d8fd8cc58c4f9329b7fa5c | |
parent | 1e2cf6340495beaf773f83b6e281f5d13536921d (diff) | |
download | mgarepo-ed3190ffdf8b74b5ee2fce18f079784496469816.tar mgarepo-ed3190ffdf8b74b5ee2fce18f079784496469816.tar.gz mgarepo-ed3190ffdf8b74b5ee2fce18f079784496469816.tar.bz2 mgarepo-ed3190ffdf8b74b5ee2fce18f079784496469816.tar.xz mgarepo-ed3190ffdf8b74b5ee2fce18f079784496469816.zip |
remove logging error
-rw-r--r-- | MgaRepo/util.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/MgaRepo/util.py b/MgaRepo/util.py index 69f3a79..c73c098 100644 --- a/MgaRepo/util.py +++ b/MgaRepo/util.py @@ -7,12 +7,9 @@ import getpass import sys import os import re -import logging from cStringIO import StringIO #import commands -log = logging.getLogger("mgarepo") - # Our own version of commands' getstatusoutput(). We have a commands # module directory, so we can't import Python's standard module def commands_getstatusoutput(cmd): @@ -93,12 +90,12 @@ def mapurl(url): try: expr_, replace = urlmap.split()[:2] except ValueError: - log.error("invalid url-map: %s", urlmap) + sys.stderr.write("invalid url-map: %s" % urlmap) else: try: newurl = re.sub(expr_, replace, url) except re.error, errmsg: - log.error("error in URL mapping regexp: %s", errmsg) + sys.stderr.write("error in URL mapping regexp: %s" % errmsg) return newurl @@ -112,8 +109,6 @@ def get_helper(name): helperdir = config.get("helper", "prefix", "/usr/share/mgarepo") hpath = config.get("helper", name, None) or \ os.path.join(helperdir, name) - if not os.path.isfile(hpath): - log.warn("providing unexistent helper: %s", hpath) return hpath def rellink(src, dst): |