snappy update downloads non-namespaced package when fork is installed

Bug #1450169 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
High
Unassigned
15.04
Fix Released
High
Sergio Schvezov

Bug Description

I had hello-world.jdstrand installed:
$ sudo snappy install hello-world.jdstrand
Installing hello-world.jdstrand
Starting download of hello-world.jdstrand
31.66 KB / 31.66 KB [==========================================] 100.00 % 64.70 KB/s
Done
Name Date Version Developer
ubuntu-core 2015-04-29 47 ubuntu
hello-world 2015-04-29 1.5 jdstrand
generic-amd64 2015-04-27 1.1

I then uploaded hello-world 1.5.1 to the store and then ran snappy update:
$ sudo snappy update
Installing hello-world (1.0.14)
Starting download of hello-world
32.73 KB / 32.73 KB [=========================================] 100.00 % 124.32 KB/s
Done
a package by that name is already installed
(amd64)ubuntu@localhost:~$ snappy list
Name Date Version Developer
ubuntu-core 2015-04-29 47 ubuntu
hello-world 2015-04-29 1.5 jdstrand
generic-amd64 2015-04-27 1.1

hello-world 1.0.14 is hello-world.canonical, but as you can see, I had hello-world.jdstrand installed.

This also downloads the wrong package:
$ sudo snappy update hello-world.jdstrand

And this fails too:
$ sudo snappy install hello-world.jdstrand
Installing hello-world.jdstrand
hello-world.jdstrand failed to install: a package by that name is already installed

Currently the only way to upgrade a fork is to remove then install.

Related branches

description: updated
summary: - snappy update downloaded the non-namespaced package when I have a fork
- installed
+ snappy update downloads non-namespaced package when fork is installed
Changed in snappy-ubuntu:
importance: Undecided → High
description: updated
Michael Terry (mterry)
affects: snappy-ubuntu → snappy
Changed in snappy:
status: New → Triaged
John Lenton (chipaca)
Changed in snappy:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.