Bug 56431 - gr-batch-watch-standalone формирует некорректные версии на GitHub/GitLab, если Vcs содержит .git
Summary: gr-batch-watch-standalone формирует некорректные версии на GitHub/GitLab, есл...
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: perl-Gear-Remotes (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: viy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 54720
  Show dependency tree
 
Reported: 2025-10-17 10:20 MSK by Максим Слипенко
Modified: 2025-10-17 12:04 MSK (History)
2 users (show)

See Also:


Attachments
Патч с удалением .git в _watch_msg (722 bytes, patch)
2025-10-17 10:20 MSK, Максим Слипенко
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Максим Слипенко 2025-10-17 10:20:34 MSK
Created attachment 19800 [details]
Патч с удалением .git в _watch_msg

gr-batch-watch-standalone формирует некорректные версии на GitHub/GitLab, если Vcs содержит .git, а таких spec-файлов много: https://github.com/search?q=repo%3Aaltlinux%2Fspecs+%2F%28%3F-i%29%5EVcs%3A%5Cs%2B%28.%2B%5C.git%29%24%2F&ref=opensearch&type=code

Предлагаемое решение: удалять .git из ссылки при выводе

Сейчас:

$ cat ./gitbatch-in4.txt
python3-module-nvchecker        2.18    https://github.com/lilydjwg/nvchecker   https://github.com/lilydjwg/nvchecker.git
$ gr-batch-watch-standalone ./gitbatch-in4.txt
python3-module-nvchecker        2.18    2.19    https://github.com/lilydjwg/nvchecker.git/releases/tag/v2.19

После патча:

$ gr-batch-watch-standalone ./gitbatch-in4.txt
python3-module-nvchecker        2.18    2.19    https://github.com/lilydjwg/nvchecker/releases/tag/v2.19

P.S.: предлагаю для удобной разработки перенести проект на altlinux.space