From 6fbd015fea464f061e09c62de25666782031175e Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 19 Dec 2007 13:37:35 +0000 Subject: add spuk's debug code for bug 34999 --- lib/Youri/Submit/Action/Archive.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/Youri/Submit/Action/Archive.pm b/lib/Youri/Submit/Action/Archive.pm index e902d76..e0ad4b3 100644 --- a/lib/Youri/Submit/Action/Archive.pm +++ b/lib/Youri/Submit/Action/Archive.pm @@ -45,6 +45,18 @@ sub run { $repository->get_replaced_packages($package, $target, $define) ) { my $file = $replaced_package->get_file(); + + # trap for debugging bug 34999 + if ($file =~ /(2007\.[01]|2008\.0).*\/(updates|release)/) { + my $bugmsg = "BUG#34999 WARNING: trying to remove from a release: $file\n"; + open(BUG34999LOG, '>>', "/home/mandrake/bug34999.log"); + print $bugmsg; + print BUG34999LOG localtime().": ".$bugmsg; + close BUG34999LOG; + + next; + } + my ($rep_section, $rep_main_section) = $file =~ m,$path/(([^/]+)/.*)/[^/]+.rpm,; # We do accept duplicate version for other submedia of the same main media section print "(path '$path') file '$file' section '$rep_section' main_section '$rep_main_section'\n" if $self->{_verbose}; -- cgit v1.2.1