-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Pacman: Fix name of URL packages #4959
Pacman: Fix name of URL packages #4959
Conversation
Inspired by the integration tests for url packages
This reverts commit f60d92f. Accidentally commited to the wrong branch.
CC @jraby |
Nice, thanks for taking the time to fix this. I definitely didn't test URLs when developing the feature, only local pkgs. I was wondering if we could find a way to add a test for this, there's already something close, but not quite: I'm not sure how to go about this since we probably don't want to hardcode a URL... |
@jraby you can always download a package and then serve it through a local HTTP server, and install it through that URL. |
Should we merge this for now? Then you (or whoever wants to) can add tests in a follow-up PR, and most importantly #4956 can proceed. |
I created a new PR for improving the integrity tests for url packages: #4968 |
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #4970 🤖 @patchback |
* Strip downloading... of unseen URLs * Added changelog fragment * Added integration tests for reason and reason_for Inspired by the integration tests for url packages * Revert "Added integration tests for reason and reason_for" This reverts commit f60d92f. Accidentally commited to the wrong branch. (cherry picked from commit 788cfb6)
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #4971 🤖 @patchback |
@Minei3oat thanks for fixing this! |
* Strip downloading... of unseen URLs * Added changelog fragment * Added integration tests for reason and reason_for Inspired by the integration tests for url packages * Revert "Added integration tests for reason and reason_for" This reverts commit f60d92f. Accidentally commited to the wrong branch. (cherry picked from commit 788cfb6)
SUMMARY
This PR fixes the wrong name resolution of URLs.
When the URL is unknown to pacman, it will download the package, which results in
filename_without_extension downloading...\n
beeing prepend to the output for each unknown URL. As this content isn't filtered out, the package name will befilename_without_extension downloading...\npackage_name
.ISSUE TYPE
COMPONENT NAME
pacman
ADDITIONAL INFORMATION