Commit 50fb67a4 authored by Bernhard Link's avatar Bernhard Link

fix bug in queueing files when already done (as the old code never does this)

parent 50c38786
/* This file is part of "reprepro"
* Copyright (C) 2004,2005,2007,2008 Bernhard R. Link
* Copyright (C) 2004,2005,2007,2008,2009 Bernhard R. Link
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
......@@ -415,6 +415,8 @@ static retvalue enqueue(struct aptmethod *method, /*@only@*/char *uri, /*@only@*
else {
method->lasttobedone->next = todo;
method->lasttobedone = todo;
if( method->nexttosend == NULL )
method->nexttosend = todo;
}
return RET_OK;
}
......
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