]> git.donarmstrong.com Git - dak.git/commitdiff
Disable action for now.
authorJames Troup <james@nocrew.org>
Fri, 2 Mar 2001 02:46:02 +0000 (02:46 +0000)
committerJames Troup <james@nocrew.org>
Fri, 2 Mar 2001 02:46:02 +0000 (02:46 +0000)
cindy

diff --git a/cindy b/cindy
index af4370380b677125ec3c80d46dd9e0955b070319..fc80afd50d4eadb6435ef7cd3c47b48025509a82 100755 (executable)
--- a/cindy
+++ b/cindy
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 
 # Output override files for apt-ftparchive and indices/
-# Copyright (C) 2000  James Troup <james@nocrew.org>
-# $Id: cindy,v 1.1 2001-01-16 21:52:37 troup Exp $
+# Copyright (C) 2000, 2001  James Troup <james@nocrew.org>
+# $Id: cindy,v 1.2 2001-03-02 02:46:02 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
@@ -73,21 +73,22 @@ def process(suite, component, type):
             if not packages.has_key(package):
                 if not src_packages.has_key(package):
                     print "DELETING: %s" % (package);
-                    projectB.query("DELETE FROM override WHERE package = '%s' AND suite = %s AND component = %s AND type = %s"
-                                   % (package, suite_id, component_id, type_id));
+                    #projectB.query("DELETE FROM override WHERE package = '%s' AND suite = %s AND component = %s AND type = %s"
+                    #% (package, suite_id, component_id, type_id));
                 else:
                     print "MAKING SOURCE: %s" % (package);
-                    projectB.query("DELETE FROM override WHERE package = '%s' AND suite = %s AND component = %s AND type = %s"
-                                   % (package, suite_id, component_id, type_id));
+                    #projectB.query("DELETE FROM override WHERE package = '%s' AND suite = %s AND component = %s AND type = %s"
+                    #% (package, suite_id, component_id, type_id));
                     # Then if source doesn't already have a copy, insert it into source
                     q = projectB.query("SELECT package FROM override WHERE package = '%s' AND suite = %s AND component = %s AND type = %s" % (package, suite_id, component_id, dsc_type_id));
                     if q.getresult() == []:
-                        projectB.query("INSERT INTO override (package, suite, component, priority, section, type, maintainer) VALUES ('%s', %s, %s, %s, %s, %s, '%s')" % (package, suite_id, component_id, i[1], i[2], dsc_type_id, i[3]));
+                        #projectB.query("INSERT INTO override (package, suite, component, priority, section, type, maintainer) VALUES ('%s', %s, %s, %s, %s, %s, '%s')" % (package, suite_id, component_id, i[1], i[2], dsc_type_id, i[3]));
+                        print "(nop)"
         else: # dsc
             if not src_packages.has_key(package):
                 print "DELETING: %s" % (package);
-                projectB.query("DELETE FROM override WHERE package = '%s' AND suite = %s AND component = %s AND type = %s"
-                               % (package, suite_id, component_id, type_id));
+                #projectB.query("DELETE FROM override WHERE package = '%s' AND suite = %s AND component = %s AND type = %s"
+                #% (package, suite_id, component_id, type_id));
     projectB.query("COMMIT WORK");