Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-filter-with-deps flag isn't including dependencies #1385

Open
otherjason opened this issue Oct 28, 2024 · 0 comments
Open

-filter-with-deps flag isn't including dependencies #1385

otherjason opened this issue Oct 28, 2024 · 0 comments

Comments

@otherjason
Copy link

Detailed Description

I am trying to create a mirror from a portion of the repository found at https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/. This repo contains many releases of NVIDIA's CUDA toolkit, which are large in size. I'm trying to create a mirror of just the latest release.

There is a single package, cuda-12-6, that can be used as a top-level installation target; it depends on the other packages in the repo that actually contain the functionality. The output of dpkg -I for this package is:

$ dpkg -I cuda-12-6_12.6.2-1_amd64.deb
 new Debian package, version 2.0.
 size 2522 bytes: control archive=584 bytes.
     492 bytes,    12 lines      control              
      78 bytes,     1 lines      md5sums              
 Package: cuda-12-6
 Version: 12.6.2-1
 Architecture: amd64
 Maintainer: cudatools <[email protected]>
 Installed-Size: 7
 Depends: cuda-runtime-12-6 (>= 12.6.2), cuda-toolkit-12-6 (>= 12.6.2), cuda-demo-suite-12-6 (>= 12.6.77)
 Section: multiverse/devel
 Priority: optional
 Description: CUDA 12.6 meta-package
  Meta-package containing all the available packages required for native CUDA
  development. Contains the toolkit, samples, driver and documentation. Locked
  at CUDA Toolkit version 12.6.

I tried to use this meta-package to create a mirror containing this package only and all of its dependencies. However, when I do so, aptly only downloads the meta-package and does not download the dependencies. Here's what I got:

$ aptly mirror create -filter "cuda-12-6 (= 12.6.2-1)" -filter-with-deps cuda-12.6.2-ubuntu-22.04 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /
Downloading: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64//InRelease
gpgv: Signature made Fri 25 Oct 2024 03:39:17 PM EDT
gpgv:                using RSA key A4B469963BF863CC
gpgv: Good signature from "cudatools <[email protected]>"

Mirror [cuda-12.6.2-ubuntu-22.04]: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ .// successfully added.
You can run 'aptly mirror update cuda-12.6.2-ubuntu-22.04' to download repository contents.
$ aptly mirror update cuda-12.6.2-ubuntu-22.04
Downloading: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64//InRelease
gpgv: Signature made Fri 25 Oct 2024 03:39:17 PM EDT
gpgv:                using RSA key A4B469963BF863CC
gpgv: Good signature from "cudatools <[email protected]>"
Downloading & parsing package files...
Downloading: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64//Packages.gz
Applying filter...
Packages filtered: 4615 -> 1.
Building download queue...
Download queue: 0 items (0 B)
^[[A
Mirror `cuda-12.6.2-ubuntu-22.04` has been successfully updated.

As you can see, the filter only passed the single package I specified and not its dependencies.

Context

This seems to be a bug in the handling of the -filter-with-deps flag.

Your Environment

I am using Ubuntu 22.04, with aptly installed from the nightly repo:

$ aptly version
aptly version: 1.6.0~alpha30+247+g9b62b4e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant