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

juicer cart update should replace entries with higher versions? #8

Open
abutcher opened this issue May 10, 2015 · 0 comments
Open

juicer cart update should replace entries with higher versions? #8

abutcher opened this issue May 10, 2015 · 0 comments

Comments

@abutcher
Copy link
Owner

This would only apply to rpms... which makes updating it a bit more dumb imo.

Result: Two rpms with the same name and different versions both exist in an updated cart
Expected result: candlepin-tomcat6-0.4.12-1 is replaced by candlepin-tomcat6-0.4.14-1 after the update

<abutcher>@(strahd)[~/rhat/juicer] 16:44:31  (master)
$ juicer cart create abutcher-test -r hoss ~/abutcher/candlepin-el6/candlepin-tomcat6-0.4.12-1.el6.noarch.rpm
Saved cart 'abutcher-test'.

<abutcher>@(strahd)[~/rhat/juicer] 16:45:42  (master)
$ juicer cart show abutcher-test
{   
    "current_env": "re",
    "_id": "abutcher-test",
    "repos_items": {
        "hoss": [
            "/home/abutcher/abutcher/candlepin-el6/candlepin-tomcat6-0.4.12-1.el6.noarch.rpm"
        ]
    }
}

<abutcher>@(strahd)[~/rhat/juicer] 16:45:48  (master)
$ juicer cart update abutcher-test -r hoss ~/abutcher/candlepin-el6/candlepin-tomcat6-0.4.14-1.el6.noarch.rpm
Saved cart 'abutcher-test'.

<abutcher>@(strahd)[~/rhat/juicer] 16:46:17  (master)
$ juicer cart show abutcher-test
{   
    "current_env": "re",
    "_id": "abutcher-test",
    "repos_items": {
        "hoss": [
            "/home/abutcher/abutcher/candlepin-el6/candlepin-tomcat6-0.4.12-1.el6.noarch.rpm",
            "/home/abutcher/abutcher/candlepin-el6/candlepin-tomcat6-0.4.14-1.el6.noarch.rpm"
        ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant