Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-21 Thread Igor Gnatenko
@ignatenkobrain pushed 2 commits. 26410a6 build: make haveRichDep aware of other fields allowed to have them 998c1b8 build: check rich dependencies for special characters -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-20 Thread Michael Schroeder
Hmm, I just noticed that haveTildeDep/haveCharInDep does not work for rich dependencies... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-19 Thread ニール・ゴンパ
@mlschroe Well, when we're referring to hg/git/svn snapshot dates, that's considered as part of upstream versioning. This is done in openSUSE and we want to move to that in Fedora to simplify automation of package (re)builds and things like that. -- You are receiving this because you are

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-19 Thread Igor Gnatenko
@mlschroe, would you mind implementing this in libsolv? Or should I do so? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-19 Thread Michael Schroeder
I don't mind having this, '^' should not break existing EVR uses. I'm a bit uncertain about the use case, wouldn't you put the '20160101' from the example in the release? 'Version' usually comes from upstream and 'Release' comes from the packager. But, as said, I'm not opposed ;-) -- You are

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-18 Thread Zbigniew Jędrzejewski-Szmek
keszybz commented on this pull request. Nice! > @@ -45,6 +45,20 @@ int rpmvercmp(const char * a, const char * b) continue; } + /* +* Handle caret separator. Concept is same as tilde, except if one of +* strings ends (base version), another considered

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-16 Thread ニール・ゴンパ
Conan-Kudo approved this pull request. The changes look good, but here's a suggestion for the function name change. > @@ -228,12 +228,12 @@ static rpmRC processScriptFiles(rpmSpec spec, Package > pkg) return rc; } -static int haveTildeDep(Package pkg) +static int haveCharInDep(Package

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-16 Thread ニール・ゴンパ
Conan-Kudo approved this pull request. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/597#pullrequestreview-175803053___

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-16 Thread ニール・ゴンパ
@ffesti @ignatenkobrain Let's have a clearer name for the function, please? Char does not mean carat to me. :) EDIT: I'm dumb. This is a generalization of the tilde function. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-16 Thread ニール・ゴンパ
@ffesti @ignatenkobrain Let's have a clearer name for the function, please? `Char` does not mean `carat` to me. :) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-16 Thread Florian Festi
Sounds good to me. ^ is a nice character for this. haveCharInDep() is not a great name for the function, but meh... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-16 Thread Panu Matilainen
Like noted in #88, I'm not opposed. Symmetry usually makes sense, and if there's a way to force sorting one way then why not the other? Especially since there clearly is a technical case for it too. @mlschroe , thoughts? -- You are receiving this because you are subscribed to this thread.

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-16 Thread Panu Matilainen
pmatilai commented on this pull request. > (void) rpmlibNeedsFeature(pkg, "TildeInVersions", "4.10.0-1"); +/* check if the package has a dependency with a '^' */ +if (haveCharInDep(pkg, '^')) + (void) rpmlibNeedsFeature(pkg, "CaretInVersions", "4.14.0-1"); The version in

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-16 Thread Igor Gnatenko
ignatenkobrain commented on this pull request. > (void) rpmlibNeedsFeature(pkg, "TildeInVersions", "4.10.0-1"); +/* check if the package has a dependency with a '^' */ +if (haveCharInDep(pkg, '^')) + (void) rpmlibNeedsFeature(pkg, "CaretInVersions", "4.14.0-1"); not sure

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for sorting caret ('^') higher than base version (#597)

2018-11-16 Thread Igor Gnatenko
@pmatilai @hroncok @jasontibbitts @Conan-Kudo -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/597#issuecomment-439326683___