From 145f96aa8143dbb0340b8ca5d0268bf9428d59c0 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Thu, 28 Jun 2012 18:24:47 +0400 Subject: [PATCH] Remove needless script file --- scripts/cl-update-config | 45 ---------------------------------------- setup.py | 2 +- 2 files changed, 1 insertion(+), 46 deletions(-) delete mode 100644 scripts/cl-update-config diff --git a/scripts/cl-update-config b/scripts/cl-update-config deleted file mode 100644 index 39ebcf5..0000000 --- a/scripts/cl-update-config +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env python2 -#-*- coding: utf-8 -*- - -# Copyright 2010 Calculate Ltd. http://www.calculate-linux.org -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import sys -import os -from calculate.lib.update_config.cl_update_config_cmd import update_cmd -import cl_lang -# Перевод модуля -tr = cl_lang.lang() -tr.setLocalDomain('cl_lib') -tr.setLanguage(sys.modules[__name__]) - -if __name__ == "__main__": - obj = update_cmd() - ret = obj.optobj.parse_args() - if ret is False: - sys.exit(1) - opts, args = ret - programName = args[0] - # Установка цвета печати сообщений - obj.setPrintNoColor(opts) - # Выполняем логику программы - if opts.system: - if not obj.updateSystemConfig(programName,opts.pkg_category, - opts.pkg_version, opts.path): - sys.exit(1) - if opts.desktop: - if not obj.updateUserConfig(programName, opts.pkg_category, - opts.pkg_version): - sys.exit(1) - sys.exit(0) diff --git a/setup.py b/setup.py index 4ce22f0..ae7169b 100755 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ setup( author_email = "support@calculate.ru", url = "http://calculate-linux.org", license = "http://www.apache.org/licenses/LICENSE-2.0", - scripts = ['./scripts/cl-update-config'], + scripts = [], packages=['calculate', module_name, module_name + '.client',