openSUSE / openSUSE/libsolv

testsolv: skip the last "job install name" for package if do not ends with a new line

Open
#490 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
609
Forks
177
PR merge metrics
No merged PRs in 30d

Description

I found that the testsolv parser in ext skip the last job install name line if it is not followed by a new line \n.

For example:

system x86_64 rpm

...
job install name pattern:yast2_basis
job install name kernel-default
job install name snapper
job install name grub2
job install name btrfsprogs

btrfsprogs will be ignored if the EOF is after the end of the line and there is no \n. If I am not wrong this do not happen when the job install name is referring to a pattern: instead of a package, but I am not sure here.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the example input and inspect the testsolv parser in ext, focusing on how the final line is handled at EOF. Confirm that the final job install name is retained without a trailing newline, and add or update a regression test if the existing testsolv coverage provides a suitable location.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.