Author: daniel
Date: 2003-06-19 05:59:53 -0500 (Thu, 19 Jun 2003)
New Revision: 216

Removed:
   branches/4.3.0/sid/debian/checkdotfiles.py
   branches/4.3.0/sid/debian/generateunaccounted.py
Log:
Let's see if I can't master svn mv this time; moving checkdotfiles.py and
generateunaccounted.py to p/d, where it shall stay, unless a tools/ dir or
similar is created.


Deleted: branches/4.3.0/sid/debian/checkdotfiles.py
==============================================================================
--- branches/4.3.0/sid/debian/checkdotfiles.py  2003-06-19 10:58:30 UTC (rev 215)
+++ branches/4.3.0/sid/debian/checkdotfiles.py  2003-06-19 10:59:53 UTC (rev 216)
@@ -1,67 +0,0 @@
-#!/usr/bin/python2.2
-# Searches through debian/tmp for all files in debian/*.files and debian/*.docs;
-# creates a list in broken-packages of missing files.
-
-import os.path, sys, glob, os
-
-dotfiles = glob.glob("debian/*.install")
-dotfiles += glob.glob("debian/*.docs")
-dotfiles += glob.glob("debian/*.install.i386")
-for dotfile in dotfiles:
-       fileList = open(dotfile)
-       tmpline = fileList.readline()
-       errors = []
-       while tmpline:
-               tmpline = tmpline.rstrip()
-               if dotfile[-5:] == ".docs":
-                       path = tmpline
-               else:
-                       path = "debian/tmp/%s" % tmpline
-                       tmpline = path
-               if not os.path.isfile(path):
-                       if os.path.isdir(tmpline):
-                               reason = "(directory)"
-                       elif os.path.islink(tmpline):
-                               reason = "(bad link)"
-                       else:
-                               reason = "(non-existant)"
-                       errors.append("%s %s" % (tmpline, reason))
-               tmpline = fileList.readline()
-       if len(errors) > 0:
-               print "%s:" % dotfile
-               for error in errors:
-                       print "ERROR - %s" % error
-               print "\n"
-       fileList.close()
-
-linkfiles = glob.glob("debian/*.links")
-linkfiles += glob.glob("debian/*.debugfiles")
-for linkfile in linkfiles:
-       linkList = open(linkfile)
-       tmpline = linkList.readline()
-       errors = []
-       while tmpline:
-               tmpline = tmpline.rstrip()
-               links = tmpline.split(' ')
-               reason = ""
-               if not len(links) == 2:
-                       reason = "(badly-formed line!)"
-               elif not (os.path.isfile("debian/tmp/%s" % links[0]) or 
os.path.isdir("debian/tmp/%s" % links[0])):
-                       if os.path.islink(links[0]):
-                               if os.readlink(links[0]) == links[1] or 
os.readlink(links[0]) == links[0]: # fixme
-                                       reason = "(recursive link)"
-                               elif not os.path.exists("debian/tmp/%s" % links[0]):
-                                       reason = "(non-existant)"
-                       else:
-                               reason = "(non-existant)"
-               if reason == "(badly-formed line!)":
-                       errors.append("%s %s" % (tmpline, reason))
-               elif reason:
-                       errors.append("%s -> %s %s" % (links[1], links[0], reason))
-               tmpline = linkList.readline()
-       if len(errors) > 0:
-               print "%s:" % linkfile
-               for error in errors:
-                       print "ERROR - %s" % error
-               print "\n"
-       linkList.close()

Deleted: branches/4.3.0/sid/debian/generateunaccounted.py
==============================================================================
--- branches/4.3.0/sid/debian/generateunaccounted.py    2003-06-19 10:58:30 UTC (rev 
215)
+++ branches/4.3.0/sid/debian/generateunaccounted.py    2003-06-19 10:59:53 UTC (rev 
216)
@@ -1,47 +0,0 @@
-#!/usr/bin/python2.2
-# Searches through debian/tmp for all files in debian/*.files and debian/*.docs;
-# creates a list of files unaccounted-for.
-
-import os.path, sys, glob, os, string
-
-architecture = os.popen("dpkg --print-architecture").read().rstrip()
-print "Architecture is %s" % architecture
-
-dotfiles = glob.glob("debian/*.install")
-dotfiles += glob.glob("debian/*.install.%s" % architecture)
-dotfiles += glob.glob("debian/*.docs")
-dotfiles += glob.glob("debian/*.docs.%s" % architecture)
-files = {}
-for dotfile in dotfiles:
-       fileList = open(dotfile)
-       tmpline = fileList.readline()
-       while tmpline:
-               tmpline = tmpline.rstrip()
-               if not string.find(dotfile, ".docs") == -1:
-                       path = tmpline[11:]
-               else:
-                       path = tmpline
-               files[path] = "yes"
-               tmpline = fileList.readline()
-       fileList.close()
-
-linkfiles = glob.glob("debian/*.links")
-for linkfile in linkfiles:
-       linkList = open(linkfile)
-       tmpline = linkList.readline()
-       while tmpline:
-               tmpline = tmpline.rstrip()
-               links = tmpline.split(' ')
-               reason = ""
-               if len(links) == 2:
-                       files[links[1]] = "yes"
-               tmpline = linkList.readline()
-
-manifest = open("debian/MANIFEST.%s" % architecture)
-tmpline = manifest.readline()
-while tmpline:
-       tmpline = tmpline.rstrip()
-       if not files.has_key(tmpline) and not tmpline[:22] == 
"usr/X11R6/lib/pkgconfig":
-               print tmpline
-       tmpline = manifest.readline()
-manifest.close()


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to