Commit 1769735b authored by Bernhard Link's avatar Bernhard Link

make processincoming not accepting an upload because of no distribution taking...

make processincoming not accepting an upload because of no distribution taking it a special return code
parent 4e249759
2009-08-05
* if a package is not accepted by processincoming because no
distribution is found for it or no distribution allows it, the
existcode is now 243
2009-08-03
* add a MorgueDir option to conf/incoming where cleaned up files
are moved to.
......
......@@ -10,6 +10,7 @@ bool interrupted(void);
/* retvalue is simply an int.
* just named to show it follows the given semantics */
/*@numabstract@*/ enum retvalue_enum {
RET_ERROR_INCOMING_DENY = -13,
RET_ERROR_INTERNAL = -12,
RET_ERROR_BZ2 = -11,
RET_ERROR_Z = -10,
......
......@@ -2111,7 +2111,7 @@ static retvalue process_changes(struct database *database, struct incoming *i, i
i->delete[file->ofs] = true;
}
}
r = RET_ERROR;
r = RET_ERROR_INCOMING_DENY;
} else {
if( broken ) {
fprintf(stderr,
......
......@@ -328,7 +328,7 @@ TARSHA1S="$(sha1andsize i/bird_1.tar.gz)"
DSCSHA2S="$(sha2andsize i/bird_1.dsc)"
TARSHA2S="$(sha2andsize i/bird_1.tar.gz)"
testrun - -b . processincoming default 3<<EOF
returns 255
returns 243
stderr
-v0=Data seems not to be signed trying to use directly...
*=No distribution found for 'test.changes'!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment