Skip to content

fix: support underscores in package version strings - #266

Merged
pbrisbin merged 4 commits into
archlinux-downgrade:mainfrom
Masterisk-F:fix-version-underscores
Mar 2, 2026
Merged

pbrisbin merged 4 commits into
archlinux-downgrade:mainfrom
Masterisk-F:fix-version-underscores

Conversation

@Masterisk-F

Copy link
Copy Markdown
Contributor

Checklist

  • Admin:
    • No duplicate PRs
  • Integration:
    • Always add unit tests for fixes or new functionality
    • If adding new options, update dist/completion/*
    • If adding new options, update dist/conf/downgrade.conf
  • Documentation:
    • If adding new options, update usage and doc/*.ronn
    • If adding new strings, update locale/*.po
    • If necessary, update README.md

Description

This PR updated the regex patterns of version strings to allow underscores.

I encountered this issue with my AUR package rubyripperremix, where the installation failed because the version string contains underscores(_).

Comment thread src/downgrade

@pbrisbin pbrisbin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to merge this once tests pass. Thanks!

@Masterisk-F

Copy link
Copy Markdown
Contributor Author

I wonder why the test passes in my environment... Please give me a moment to check.

This updates the mocks to align with recent changes that execute `makepkg` and `git` via `su -c`. It also adds support for the new `makepkg --packagelist` check, fixing the test failure for packages with underscores in their version strings.
@Masterisk-F
Masterisk-F force-pushed the fix-version-underscores branch from 3a01c95 to 88b3ad5 Compare March 1, 2026 11:08
@Masterisk-F

Copy link
Copy Markdown
Contributor Author

I have updated the test functions to align with the change #265 , rebased the branch onto the latest main, and force-pushed. All tests should pass now.

@pbrisbin
pbrisbin enabled auto-merge (rebase) March 2, 2026 13:37
@pbrisbin
pbrisbin merged commit 7d6e22f into archlinux-downgrade:main Mar 2, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants