Skip to content
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

Rpm version fix - revert using rpm for parsing #44

Merged
merged 2 commits into from
Dec 11, 2013
Merged

Conversation

lslezak
Copy link
Member

@lslezak lslezak commented Dec 11, 2013

Reasons:

  • use grep/sed instead of rpm, it prints the version string
    for each subpackage
  • rpm does some dependency evaluation and fails when not runnign in C locale:
rpm --specfile --qf "%{VERSION}" yast2-storage.spec
chyba: line 122: Illegal char in: Requires: libstorage-devel = balíček libstorage-devel není nainstalován
chyba: dotaz na spec soubor yast2-storage.spec selhal, nemohu parsovat

Although running in C locale helps, it seems that rpm does too much work and the simple grep and sed seems to be a better approach...

This reverts commit 2b8e26a.

Reason: Use grep/sed instead of rpm, it prints the version string
for each subpackage, more over it does some dependency evaluation
and fails when not runnign in "C" locale.

Simple grep/sed seems to be better...
@mvidner
Copy link
Member

mvidner commented Dec 11, 2013

LGTM

lslezak added a commit that referenced this pull request Dec 11, 2013
Rpm version fix - revert using `rpm` for parsing
@lslezak lslezak merged commit 7d8e8ac into master Dec 11, 2013
@lslezak lslezak deleted the rpm_version_fix branch December 11, 2013 15:00
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