Dima Kuznetsov has uploaded a new change for review.
Change subject: Remove orphaned files
......................................................................
Remove orphaned files
This patch removes files than are neither mentioned in any code nor
shipped int the dist tar file.
Change-Id: Ibce1a6c8044fdeae49d6f563a90383a58bf9b170
Signed-off-by: Dima Kuznetsov <dkuznets(a)redhat.com>
---
D vdsm/substitute_constants.py
D vdsm/write-net-config
2 files changed, 0 insertions(+), 62 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/24/35724/1
diff --git a/vdsm/substitute_constants.py b/vdsm/substitute_constants.py
deleted file mode 100644
index 6cecb5c..0000000
--- a/vdsm/substitute_constants.py
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2011 Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#
-# Refer to the README and COPYING files for full details of the license
-#
-
-import sys
-import re
-
-from vdsm import constants
-
-
-def replacement(m):
- s = m.group()
- return getattr(constants, 'EXT_' + s[1:-1],
- getattr(constants, s[1:-1], s))
-
-if len(sys.argv) <= 1:
- print """usage: %s filename...
-
-substitute all @CONSTANT@s in filename.
-""" % sys.argv[0]
-
-for fname in sys.argv[1:]:
- if fname == '-':
- f = sys.stdin
- else:
- f = open(fname)
-
- s = f.read()
- r = re.sub('@[^@\n]*@', replacement, s)
-
- if fname == '-':
- f = sys.stdout
- else:
- f = open(fname, 'w')
-
- f.write(r)
diff --git a/vdsm/write-net-config b/vdsm/write-net-config
deleted file mode 100755
index b77d892..0000000
--- a/vdsm/write-net-config
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-#
-# little wrapper to let vdsm write to root-owned /etc/sysconfig/network-scripts
-# (and to there only)
-
-case "$1" in
- /etc/sysconfig/network-scripts/ifcfg-*) cat > "$1";;
- *) echo skipping $1 1>&2 ;;
-esac
--
To view, visit
http://gerrit.ovirt.org/35724
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibce1a6c8044fdeae49d6f563a90383a58bf9b170
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dima Kuznetsov <dkuznets(a)redhat.com>