Jira (PUP-10416) Comparing rpm package versions without epoch fails

0 views
Skip to first unread message

Luchian Nemes (Jira)

unread,
Apr 8, 2020, 12:05:04 PM4/8/20
to puppe...@googlegroups.com
Luchian Nemes created an issue
 
Puppet / Bug PUP-10416
Comparing rpm package versions without epoch fails
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/04/08 9:04 AM
Priority: Normal Normal
Reporter: Luchian Nemes

Desired Behavior:
To succesfully do the version comparison:

3:1.0 < 1.2

 

Actual Behavior:
Is not able to compare epoch 3 against missing epoch.

 

Proposed solution:

Currently, missing epoch is considered to be nil in the code. This should be instead treated as 0 when comparing versions. This case occurs when a package with a version containing epoch was already installed.

 

Regarding this topic, version received in the :ensure field of the manifest should be stripped of epoch when installing packages (as yum at least seems to use epoch just for sorting the versions but will not find specific version when epoch is mentioned).

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Apr 14, 2020, 10:54:03 AM4/14/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR NW - Triage 2020-04-29

Mihai Buzgau (Jira)

unread,
Apr 15, 2020, 4:44:03 AM4/15/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
*Desired Behavior:*

To succesfully do the version comparison:
{panel}
3:1.0
< > 1.2
{panel}
 

*Actual Behavior:*
Is not able to compare epoch *3* against missing epoch.

 

*Proposed solution:*


Currently, missing epoch is considered to be nil in the code. This should be instead treated as 0 when comparing versions. This case occurs when a package with a version containing epoch was already installed.

 

Regarding this topic, version received in the :ensure field of the manifest should be stripped of epoch when installing packages (as yum at least seems to use epoch just for sorting the versions but will not find specific version when epoch is mentioned).

 

Gheorghe Popescu (Jira)

unread,
Apr 15, 2020, 4:47:02 AM4/15/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Apr 15, 2020, 5:06:04 AM4/15/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
*Desired Behavior:*
To succesfully do the version comparison:
{panel}
3:1.0 > 1.2
{panel}
  1.0 > 1.2 <- manifest

 

*Actual Behavior:*
Is not able to compare epoch *3* against missing epoch.

 

*Proposed solution:*

Currently, missing epoch is considered to be nil in the code. This should be instead treated as 0 when comparing versions. This case occurs when a package with a version containing epoch was already installed.

 

Regarding this topic, version received in the :ensure field of the manifest should be stripped of epoch when installing packages (as yum at least seems to use epoch just for sorting the versions but will not find specific version when epoch is mentioned).

 

Mihai Buzgau (Jira)

unread,
Apr 15, 2020, 5:08:03 AM4/15/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Apr 15, 2020, 5:10:04 AM4/15/20
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
Apr 16, 2020, 3:37:03 AM4/16/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Apr 23, 2020, 12:30:02 AM4/23/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 6.15.0

Claire Cadman (Jira)

unread,
Apr 27, 2020, 6:45:03 AM4/27/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages