Closed GreatBahram closed 5 years ago
Bandersnatch uses a serial
in order to ask PyPI what's change since it's last successful sync. When you add a new package your need to remove the status
file in order to ask for change since the inception of PyPI serials.
To do this:
# This is using your directory in your config file
mv -v /srv/pypi/status* /tmp
Then restart a bandersnatch sync and it will then sync your "newly" added packages.
We should:
Other ideas?
In my opinion, doing that manually is a little bit dirty work, isn't it? . Adding an option is a better choice, this can be done in two ways:
main.mirror
function.mirror.synced_serial
attribute to zero (this one sounds like a mock up ...) inside main.mirror
function.I tested the first one, the only problem I had was its logging message appears before anything else and that can be solved by setting the logging level to debug.
Check PR #102, is that OK?
cli arg to make this easier being pushed in 3.1.2
First of all, thanks for white list plugin @dwighthubbard and other friends. I had a problem with whitelist plugin, consider this config file for exmaple:
After bandersnatch downloaded all related files, then I want to add another modules, but this time bandersnatch cannot get the new packages I think there is problem with
target_serial
attribute. The output I got:Content of
pypi
directory:What's the problem ? and is there any way to monitor current status of bandersnatch, like how many packages has been download up to now and so on?