Ubuntu Pastebin

Paste from Chipaca at Thu, 16 Apr 2015 21:07:24 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
=== modified file 'snappy/click.go'
--- snappy/click.go	2015-04-16 21:03:26 +0000
+++ snappy/click.go	2015-04-16 21:06:47 +0000
@@ -315,6 +315,11 @@
 	}
 
 	if manifest.Type == SnapTypeFramework {
+		name := manifest.Name
+		idx := strings.IndexRune(name, '.')
+		if idx > -1 {
+			name = name[:idx]
+		}
 		if err := policy.Remove(manifest.Name, clickDir); err != nil {
 			return err
 		}
Download as text