Skip to content

mint-apt-download.py  #79

Closed
Closed

Description

@gm10

This part doesn't work and hasn't in a while:

os.system("LC_ALL=C apt-get install --dry-run %s | grep ^Inst | awk {'print $2;'} | xargs aptitude download -r" % package.name)

aptitude download is a wrapper for apt, thus this calls apt -r download, which fails due to the bug in the apt script I reported here.
It would however fail regardless because the -r is no valid option for apt or apt-get.

Suggest to simply replace aptitude download -r with /usr/bin/apt download

Activity

  1. gm10 commented on Oct 9, 2018

    @gm10
    ContributorAuthor

    Further issues with the script addressed in the referenced PR are:

    • no support for =version /release declaration, unlike binary apt
    • no check if current directory is writable
    • creating temporary files in current directory, risking to delete non-temporary files
    • wasteful forced apt update every time it runs
    • success message for not installed packages provides incorrect file extension for downloaded archive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions