Package: debarchiver
Version: 0.9.10
Severity: normal
Tags: patch
Hi Ola,
When I am using debarchiver to scan incoming directory:
debarchiver -so
I am getting an error:
"Error: No mail sent due to missing parameters"
and the whole process is stoped. In that point all files are already copied
into proper directories but the Packages|.gz is not update so the apt-get
install can not find those packages. There is also REJECT file where there is
information that the package already exist. So the problem cause that the whole
tree is damaged. Of course solution is to set $toAddress, $subject and $msg to
non empty string, because by default if one of them will be empty everything
will be stoped.
I am not sure what is the best solution for that problem but I see at least 2
of them.
1) Check email before starting copy the files to break the process before
anything will be changed.
2) Allow to continue even if the email will fail. [This is what I did for now
and
below you can find the patch for that]
--- /usr/bin/debarchiver 2013-11-27 11:53:02.377646584 +0000
+++ src/debarchiver.pl 2011-11-06 19:20:57.000000000 +0000
@@ -836,7 +836,7 @@
}
if ($err) {
- pdebug(3, "No mail sent due to missing parameters");
+ pdebug(2, "No mail sent due to missing parameters");
} elsif (defined $cmds{'sendmail'}) {
Best regards
Robert Mitwicki
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]