From b057e03b0836bb08770a52d1c780e81daa1a8cf6 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Thu, 16 Dec 2010 07:01:49 -0600 Subject: Remove some deprecated tools Signed-off-by: Sol Jerome --- tools/README | 8 ++------ tools/debian-build-cron.sh | 33 --------------------------------- tools/stable-check.py | 40 ---------------------------------------- 3 files changed, 2 insertions(+), 79 deletions(-) delete mode 100644 tools/debian-build-cron.sh delete mode 100755 tools/stable-check.py (limited to 'tools') diff --git a/tools/README b/tools/README index 68591fd78..09aa49aeb 100644 --- a/tools/README +++ b/tools/README @@ -1,8 +1,4 @@ -This directory contains repository maintenance tools. +This directory contains repository maintenance tools. -bundlecvt.py - - converts v1 bundles into (non-optimal bcfg2 bundles) -basebuilder.py +basebuilder.py - builds v2 base.xml from bcfg1 repo -validate_repo - - check all repo files against schemas \ No newline at end of file diff --git a/tools/debian-build-cron.sh b/tools/debian-build-cron.sh deleted file mode 100644 index c03111412..000000000 --- a/tools/debian-build-cron.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -# rsync all the repo stuff to keep it up to date -# this pulls the debian repo from mirror.mcs.anl.gov if the currect sync is finished. -# If it isn't finished it will just back off and try again when the script runs next time. - -if ! /root/bin/rsync-debian-repo ; then - echo "repo not synced "; -fi - -# now rebuild the local repo so that it will grab everything that was added today. -if ! /root/bin/local-deb-repo-maker ; then - echo "local repos are not up to date "; -fi - -#make a back up of the current pkglist so we can diff later -cp /disks/bcfg2/Pkgmgr/debian-sarge.xml /tmp/debian-sarge.xml.current - -if /root/bin/create-debian-pkglist.pl ; then - diff /tmp/debian-sarge.xml.current /disks/bcfg2/Pkgmgr/debian-sarge.xml - rm -f /tmp/debian-sarge.xml.current - - #this is mainly cause this dies from time to time.. so this is protection - /etc/init.d/apt-proxy restart -else - echo "there was a problem with creating the new pkglist.xml"; - exit 1; -fi - -#this was problem-matic so I found that it was more realiable to just make its -#own cron job to restart every couple of days to reduce the memory consumption -#restart the server.. shouldn't be needed but memory leaks make it needed. -#/etc/init.d/bcfg2-server restart - diff --git a/tools/stable-check.py b/tools/stable-check.py deleted file mode 100755 index b7416456c..000000000 --- a/tools/stable-check.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python - -import os, sys - -def do_merge(revision_string): - os.system("svnmerge merge -r %s" % revision_string) - os.system("svn commit -F svnmerge-commit-message.txt") - os.system("svn up") - -if __name__ == '__main__': - os.popen('svn up').read() - availrev = os.popen('svnmerge avail').read().strip() - if not availrev: - raise SystemExit, 0 - bf = [] - other = [] - for avail in availrev.split(','): - if '-' in avail: - start, stop = [int(x) for x in avail.split('-')] - else: - start = stop = int(avail) - - for rev in range(start, stop + 1): - log = os.popen("svn log https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2 -r %s" % rev).read() - if "[bugfix]" in log: - bf.append(rev) - else: - other.append(rev) - if '-v' in sys.argv: - print log, - - mrevs = ','.join([str(x) for x in bf]) - if '-c' in sys.argv: - print "Revisions %s need merging" % (mrevs) - elif '-f' in sys.argv: - do_merge(mrevs) - else: - a = raw_input('Merge revisions %s: [yN] ' % mrevs) - if a in ['y', 'Y']: - do_merge(mrevs) -- cgit v1.2.3-1-g7c22