Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

aptly publish repo followed by aptly publish update, missing packages

Đang mở
#1,631 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
debian, go, ubuntu
Lĩnh vực
devops

Hướng nghiên cứu

Reproduce the workflow using the commands in the issue: create jammy and jammy-debug repos, publish with components main and main/debug, then run aptly publish update jammy ubuntu. Compare published metadata before and after to confirm the debug packages are dropped. Read the aptly publish update documentation and source to see if it supports updating multiple components or if a flag is missing; check for --skip-contents or similar. Done means either the correct command is documented or the update behavior is fixed to retain all components.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi!
I am not sure that this is actually an issue (or me not using aptly correctly).

Here is how we create the repo for Ubuntu:

aptly repo create -distribution=jammy jammy
aptly repo create -distribution=jammy jammy-debug

aptly repo add \
    -force-replace \
    jammy \
    PATH/*.deb

# debug packages
aptly repo add \
    -force-replace \
    jammy-debug \
    PATH/*.ddeb

aptly publish repo \
  -component="main,main/debug" \
  -distribution="jammy" \
  jammy jammy-debug ubuntu

The published repo is then uploaded to our mirrors and we have quite a lot
around the world. We would like to be able to add some deb/ddeb to some
releases (plugins) and not sync again the whole repo but just the extra deb/ddeb
and metadata.

I thought I could just add the new deb/ddeb and then run something like:

aptly publish update \
  jammy ubuntu

But this apparently removes from the local repository all the jammy-debug
content and I can't find the right command to update both jammy and
jammy-debug. Am I missing something or aptly publish update is not the
right command?

Aptly version: 1.6.3 on Debian 12.

Ngôn ngữ chính
Go
Star
2.9k
Fork
436
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aptly-dev/aptly

Tất cả issue của aptly-dev/aptly

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.