]> git.decadent.org.uk Git - dak.git/blob - catherine
sync
[dak.git] / catherine
1 #!/usr/bin/env python
2
3 # Poolify (move packages from "legacy" type locations to pool locations)
4 # Copyright (C) 2000  James Troup <james@nocrew.org>
5 # $Id: catherine,v 1.2 2001-01-31 03:36:36 troup Exp $
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
21 # "Welcome to where time stands still,
22 #  No one leaves and no one will."
23 #   - Sanitarium - Metallica / Master of the puppets
24
25 ################################################################################
26
27 import pg
28 import utils
29 import apt_pkg;
30
31 ################################################################################
32
33 Cnf = None;
34 projectB = None;
35
36 ################################################################################
37
38 def main ():
39     global Cnf, projectB;
40
41     apt_pkg.init();
42     
43     Cnf = apt_pkg.newConfiguration();
44     apt_pkg.ReadConfigFileISC(Cnf,utils.which_conf_file());
45
46     Arguments = [('D',"debug","Heidi::Options::Debug", "IntVal"),
47                  ('h',"help","Heidi::Options::Help"),
48                  ('V',"version","Heidi::Options::Version")];
49
50     amount = apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv);
51
52     projectB = pg.connect('projectb', 'localhost');
53     db_access.init(Cnf, projectB);
54
55     
56     
57
58 #######################################################################################
59
60 if __name__ == '__main__':
61     main()
62