Giter Site home page Giter Site logo

apt-mirror BUG about apt-mirror HOT 8 OPEN

apt-mirror avatar apt-mirror commented on September 23, 2024 1
apt-mirror BUG

from apt-mirror.

Comments (8)

dewetblomerus avatar dewetblomerus commented on September 23, 2024

I am having to run a clumsy script to delete partial downloads. It would be really nice if apt-mirror could handle this.

from apt-mirror.

WarheadsSE avatar WarheadsSE commented on September 23, 2024

The issue here is that the wget call is not passed the --continue flag (-c), and as such the script will not continue and existing file, but will assume that which is present is complete. The assumption that the file being present means that it is complete breaks on slow and/or intermittent connections to a remote.

from apt-mirror.

sfinexer avatar sfinexer commented on September 23, 2024
    if ( $pid == 0 )
    {
  #  exec 'wget', '--no-cache', '--limit-rate=' . get_variable("limit_rate"), '-t', '5', '-r', '-N', '-l', 'inf', '-o', get_variable("var_path") . "/$stage-log.$i", '-i', get_variable("var_path") . "/$stage-urls.$i", @args;
     if ( $stage eq 'archive')
       {
         exec 'wget', '--no-cache', '--limit-rate=' . get_variable("limit_rate"), '-t', '5', '-r', '-c', '-l', 'inf', '-o', get_variable("var_path") . "/$stage-log.$i", '-i', get_variable("var_path") . "/$stage-urls.$i", @args;
       }
    else
      {
         exec 'wget', '--no-cache', '--limit-rate=' . get_variable("limit_rate"), '-t', '5', '-r', '-N', '-l', 'inf', '-o', get_variable("var_path") . "/$stage-log.$i", '-i', get_variable("var_path") . "/$stage-urls.$i", @args;
      }
        # shouldn't reach this unless exec fails
        die("\n\nCould not run wget, please make sure its installed and in your path\n\n");
    }

from apt-mirror.

sfinexer avatar sfinexer commented on September 23, 2024

What here isn't clear in a code?
We load indexes completely, files with a broken download resume flag.
These are TWO options but not ONE line!!!!

from apt-mirror.

sfinexer avatar sfinexer commented on September 23, 2024

dewetblomerus,
I gave a code.

  1. We load indexes ALWAYS.
  2. Если файлы пакетов не загружены полностью, мы продолжаем.
  3. There error at a distance old packets.
    4.....) My comments don't accept!

from apt-mirror.

sfinexer avatar sfinexer commented on September 23, 2024

master...sfinexer:patch-3

from apt-mirror.

dewetblomerus avatar dewetblomerus commented on September 23, 2024

@sfinexer I see you add the -c flag if stage eq 'archive'.

My understanding is that it will solve the problem.

from apt-mirror.

sfinexer avatar sfinexer commented on September 23, 2024

dewetblomerus,
And still correct start of cleaning of old packets!!!

"postmirror_script" => '$var_path/clean.sh',

from apt-mirror.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.