o ability to rebuild all other tables from dists _or_ pools (in the event of disaster) (?)
   o check errors on apt_pkg calls so we don't bomb out on daily runs (?)
   o check to see if mutli-component binary packages from a single component source are supported
-  o need a way to sync katie.conf and the DB for things like architecture
+  o Need to finish alyson (a way to sync katie.conf and the DB)
   o dinstall should remove != stable on stable install, not just f + u
   o Should probably use $ in ~ compares for files.
   o jenna needs to validate arguments!
   o jenna's untochable flag doesn't stop adding new packages
   o db_access' get_files needs to use exceptions not this None, > 0, < 0 return val BS
+  o Fix 'mixed' component handling
 
 ===================================================================================================
 
 Future Enhancements
 -------------------
 
+  o possibly disallow binary versions >> source except for bin-only NMUs (Branden Robinson)
   o project/orphaned should be a timed dist so that things only stay
     in there temporarily (say 3 months) [aj]
   o make the --help and --version options do stuff for all scripts
 
   bin_associations, bin_associations_id_seq, binaries,
   binaries_id_seq, component, component_id_seq, dsc_files,
   dsc_files_id_seq, files, files_id_seq, location, location_id_seq,
-  maintainer, maintainer_id_seq, source, source_id_seq,
-  src_associations, src_associations_id_seq, suite,
-  suite_architectures, suite_id_seq
-     TO troup;
-
--- Give write privileges to the associations tables for AJ for the purposes of `testing'
-GRANT ALL ON 
-  binaries, binaries_id_seq, 
-  bin_associations, bin_associations_id_seq,
-  source, source_id_seq, 
-  src_associations, src_associations_id_seq,
-  suite, suite_id_seq 
-     TO ajt;
-
--- RO access to AJ for all other tables
-GRANT SELECT ON 
-  architecture, archive, binaries, component,
-  dsc_files, files, location, maintainer, source, suite, suite_architectures
-     TO ajt;
+  maintainer, maintainer_id_seq, override, override_type,
+  override_type_id_seq, priority, priority_id_seq, section,
+  section_id_seq, source, source_id_seq, src_associations,
+  src_associations_id_seq, suite, suite_architectures, suite_id_seq
+     TO GROUP ftpmaster;
 
 -- Read only access to user 'nobody'
 GRANT SELECT ON 
   bin_associations, bin_associations_id_seq, binaries,
   binaries_id_seq, component, component_id_seq, dsc_files,
   dsc_files_id_seq, files, files_id_seq, location, location_id_seq,
-  maintainer, maintainer_id_seq, source, source_id_seq,
-  src_associations, src_associations_id_seq, suite,
-  suite_architectures, suite_id_seq
+  maintainer, maintainer_id_seq, override, override_type,
+  override_type_id_seq, priority, priority_id_seq, section,
+  section_id_seq, source, source_id_seq, src_associations,
+  src_associations_id_seq, suite, suite_architectures, suite_id_seq
      TO PUBLIC;
 
    SourceFileList "/org/ftp.debian.org/database/dists/testing_$(SECTION)_source.list";
    Sections "main contrib non-free";
    Architectures "alpha arm i386 m68k powerpc sparc source";
-   BinOverride "override.woody.$(SECTION)";
-   SrcOverride "override.woody.$(SECTION).src";
+   BinOverride "override.testing.$(SECTION)";
+   SrcOverride "override.testing.$(SECTION).src";
 };
 
 tree "dists/unstable"
    SourceFileList "/org/ftp.debian.org/database/dists/unstable_$(SECTION)_source.list";
    Sections "main contrib non-free";
    Architectures "alpha arm hppa hurd-i386 i386 mips mipsel m68k powerpc sh sparc source";
-   BinOverride "override.woody.$(SECTION)";
-   SrcOverride "override.woody.$(SECTION).src";
+   BinOverride "override.sid.$(SECTION)";
+   SrcOverride "override.sid.$(SECTION).src";
 };
 
 tree "dists/unstable/main"
    FileList "/org/ftp.debian.org/database/dists/unstable_main_$(SECTION)_binary-$(ARCH).list";
    Sections "debian-installer";
    Architectures "alpha arm hppa hurd-i386 i386 mips mipsel m68k powerpc sh sparc";
-   BinOverride "override.woody.$(SECTION)";
+   BinOverride "override.sid.main.$(SECTION)";
    BinCacheDB "packages-debian-installer-$(ARCH).db";
    Packages::Extensions ".udeb";
    Contents " ";
 
 #! /bin/sh
-# $Id: copyoverrides,v 1.1 2000-11-24 00:20:11 troup Exp $
+# $Id: copyoverrides,v 1.2 2001-01-10 06:01:07 troup Exp $
 
 set -e
 . $SCRIPTVARS
 
 for f in $copyoverrides ; do
        cd $overridedir
-       sortover.pl <override.$f >override.$f.new
-       ln -f override.$f old/override.$f.old
-       mv override.$f.new override.$f
        chmod g+w override.$f
 
        cd $indices
        elif [ $rc = 1 -o ! -f $nf ]; then
                echo "   installing new $nf $pc"
                mv -f .newover-$f.gz $nf
+               chmod g+w $nf
        else
                echo $? $pc
                exit 1
 
 # FIXME
 cd /org/ftp.debian.org/database/dists/
 for i in proposed-updates_-_binary-*; do cat $i >> proposed-updates_-_binary.list; done
+
+# Generate override files
+cd $overridedir
+denise
+# FIXME
+rm override.potato.all3
+for i in main contrib non-free; do cat override.potato.$i >> override.potato.all3; done
+
+# Generate Packages and Sources files
 cd $masterdir
 apt-ftparchive generate apt.conf
 
 
 
 Package: katie
 Architecture: all
-Depends: python-pygresql, python, python-apt, apt-utils, gnupg, postgresql (>= 7.0.3-1)
+Depends: python, python-pygresql, python-zlib, python-apt, apt-utils, gnupg, postgresql (>= 7.0.3-1)
 Suggests: gnupg (>= 1.0.4-1)
 Description: Debian's archive maintenance scripts
  This is a collection of archive maintenance scripts used by the
 
  MorgueSubDir "shania";
 };
 
+Natalie
+{
+
+  Options
+  {
+    Debug "";
+    Help "";
+    Version "";
+    Component "main";
+    List "";
+    Suite "unstable";
+    Set "";
+    Type "deb";
+   };
+
+ ComponentPosition "prefix"; // Whether the component is prepended or appended to the section name
+};
+
+Melanie
+{
+
+  Options
+  {
+    Debug "";
+    Help "";
+    Version "";
+    Architecture "";
+    Binary-Only "";
+    Component "";
+    Done "";
+    No-Action "";
+    Orphan "";
+    Partial "";
+    Reason "";
+    Source-Only "";
+    Suite "unstable";
+   };
+
+   MyEmailAddress "Debian Archive Maintenance <ftpmaster@ftp-master.debian.org>";
+   LogFile "/home/troup/public_html/removals.txt";
+};
+
 Neve
 {
 
        Version "2.3-testing";
        Origin "Debian";
        Description "Debian 2.3 Testing distribution - Not Released";
+       OverrideCodeName "testing";
        Priority "3";
   };
 
        Version "2.3";
        Origin "Debian";
        Description "Debian 2.3 Unstable - Not Released";
-       CodeName "woody";
-       OverrideCodeName "woody";
+       CodeName "sid";
+       OverrideCodeName "sid";
        Priority "4";
   };
 
        MeetsDFSG "false";
   };
 
+  mixed  // **NB:** only used for overrides; not yet used in other code
+  {
+       Description "Legacy Mixed";
+       MeetsDFSG "false";
+  };
+
+};
+
+Section
+{
+
+  "admin" "";
+  "base" "";
+  "comm" "";
+  "debian-installer" "";
+  "devel" "";
+  "doc" "";
+  "editors" "";
+  "electronics" "";
+  "games" "";
+  "graphics" "";
+  "hamradio" "";
+  "interpreters" "";
+  "libs" "";
+  "mail" "";
+  "math" "";
+  "misc" "";
+  "net" "";
+  "news" "";
+  "oldlibs" "";
+  "otherosfs" "";
+  "science" "";
+  "shells" "";
+  "sound" "";
+  "tex" "";
+  "text" "";
+  "utils" "";
+  "web" "";
+  "x11" "";
+
+};
+
+Priority
+{
+
+  "required" 1;
+  "important" 2;
+  "standard" 3;
+  "optional" 4;
+  "extra" 5;
+  "source" 0; // i.e. unused
+
+};
+
+OverrideType
+{
+
+  "deb" "";
+  "udeb" "";
+  "dsc" "";
+
 };
 
 Location
 
 #!/usr/bin/env python
 
-# 'Fix' stable to make debian-cd and dpkg -BORGiE users happy
+# Sanity check the database
 # Copyright (C) 2000  James Troup <james@nocrew.org>
-# $Id: tea,v 1.1 2000-12-05 04:27:48 troup Exp $
+# $Id: tea,v 1.2 2001-01-10 06:00:12 troup Exp $
 
 # 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
 
 
 incoming=/org/ftp.debian.org/incoming
 
-copyoverrides="potato potato.contrib potato.non-free woody woody.contrib woody.non-free"
+copyoverrides="potato.contrib potato.contrib.src potato.main potato.main.src potato.non-free potato.non-free.src sid.contrib sid.contrib.src sid.main sid.main.debian-installer sid.main.src sid.non-free sid.non-free.src testing.contrib testing.contrib.src testing.main testing.main.src testing.non-free testing.non-free.src"
 
 PATH=$masterdir:$PATH
 umask 022