Почему «apt-get update» показывает один и тот же пакет много раз? - PullRequest
0 голосов
/ 26 июня 2019

Используя bazel, я создал два пакета debian с правилом pkg_deb .
Один предназначен для amd64, а другой - не зависит от архитектуры.

foo_1.0_all.deb
foo_1.0_amd64.deb

Далее я создал Packages.gz, выполнив следующее:

dpkg-scanpackages -m . | gzip -c > Packages.gz

Я добавляю файл foo.list со следующим содержимым:

deb [trusted=yes] https://github.com/where/the/files/are/hosted /

, когда я добавляю файл списков и обновление вызова, я вижуследующие результаты:

sudo curl -s --compressed -o /etc/apt/sources.list.d/foo.list 'https://github.com/where/the/files/are/hosted/foo.list'
sudo apt-get update
Ign:40 https://github.com/where/the/files/are/hosted/foo Translation-en_US
Ign:41 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:42 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:43 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:37 https://github.com/where/the/files/are/hosted/foo  Packages
Ign:38 https://github.com/where/the/files/are/hosted/foo  Translation-en
Ign:40 https://github.com/where/the/files/are/hosted/foo  Translation-en_US
Ign:41 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:42 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:43 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:37 https://github.com/where/the/files/are/hosted/foo  Packages
Ign:38 https://github.com/where/the/files/are/hosted/foo  Translation-en
Ign:40 https://github.com/where/the/files/are/hosted/foo  Translation-en_US
Ign:41 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:42 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:43 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:38 https://github.com/where/the/files/are/hosted/foo  Translation-en
Get:37 https://github.com/where/the/files/are/hosted/foo  Packages [442 B]
Ign:40 https://github.com/where/the/files/are/hosted/foo  Translation-en_US
Ign:41 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:42 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:43 https://github.com/where/the/files/are/hosted/foo  Contents (deb)
Ign:38 https://github.com/where/the/files/are/hosted/foo  Translation-en                                                                   
Ign:40 https://github.com/where/the/files/are/hosted/foo  Translation-en_US                                                                
Ign:41 https://github.com/where/the/files/are/hosted/foo  Contents (deb)                                                                   
Ign:42 https://github.com/where/the/files/are/hosted/foo  Contents (deb)                                                                   
Ign:43 https://github.com/where/the/files/are/hosted/foo  Contents (deb)                                                                   
Ign:38 https://github.com/where/the/files/are/hosted/foo  Translation-en                                                                   
Ign:40 https://github.com/where/the/files/are/hosted/foo  Translation-en_US                                                                   
Ign:41 https://github.com/where/the/files/are/hosted/foo  Contents (deb)                                                                      
Ign:42 https://github.com/where/the/files/are/hosted/foo  Contents (deb)                                                                      
Ign:43 https://github.com/where/the/files/are/hosted/foo  Contents (deb)                                                                      
Ign:38 https://github.com/where/the/files/are/hosted/foo  Translation-en                                                                      
Ign:40 https://github.com/where/the/files/are/hosted/foo  Translation-en_US                                                                   
Ign:41 https://github.com/where/the/files/are/hosted/foo  Contents (deb)                                                                      
Ign:42 https://github.com/where/the/files/are/hosted/foo  Contents (deb)                                                                      
Ign:43 https://github.com/where/the/files/are/hosted/foo  Contents (deb) 

Почему так много?Что здесь происходит?

...