Public bug reported:

When you have upper-case letters in the name of the application the manifest 
file after install has wrong name, without upper-case. This creates an invalid 
installation. And the problem is not reported until you actually want to use 
the package.
Take this manifest.json as example:

phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ cat manifest.json
{
    "architecture": "all",
    "description": "Electrict resistor color code calculator",
    "framework": "ubuntu-sdk-15.04",
    "hooks": {
        "resistor-calculator": {
            "apparmor": "Resistor.apparmor",
            "desktop": "Resistor.desktop"
        }
    },
    "maintainer": "me<m...@yahoo.com>",
    "name": "com.edi.ResistorCalculator",
    "title": "Resistor Calculator",
    "version": "0.9"
}
phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ click build .
Successfully built package in './com.edi.ResistorCalculator_0.9_all.click'.
phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ sudo click install 
--user=phablet com.edi.ResistorCalculator_0.9_all.click --allow-unauthenticated
[sudo] password for phablet: 
WARNING:root:Signature check failed, but installing anyway as requested
phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ click info 
com.edi.ResistorCalculator
click_database_error-quark: Failed to parse manifest in 
/opt/click.ubuntu.com/com.edi.ResistorCalculator/0.9/.click/info/com.edi.ResistorCalculator.manifest:
 Failed to open file 
'/opt/click.ubuntu.com/com.edi.ResistorCalculator/0.9/.click/info/com.edi.ResistorCalculator.manifest':
 No such file or directory (3)
phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ ls 
/opt/click.ubuntu.com/com.edi.ResistorCalculator/0.9/.click/info
com.edi.resistorcalculator.list      com.edi.resistorcalculator.md5sums  format
com.edi.resistorcalculator.manifest  com.edi.resistorcalculator.preinst

phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ lsb_release -rd
Description:    Ubuntu 15.04
Release:        15.04

OTA-14 (directly on my meizu phone).

** Affects: click (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1651210

Title:
  If the name in manifest has uppercase letters the package is not
  installed correctly

Status in click package in Ubuntu:
  New

Bug description:
  When you have upper-case letters in the name of the application the manifest 
file after install has wrong name, without upper-case. This creates an invalid 
installation. And the problem is not reported until you actually want to use 
the package.
  Take this manifest.json as example:

  phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ cat manifest.json
  {
      "architecture": "all",
      "description": "Electrict resistor color code calculator",
      "framework": "ubuntu-sdk-15.04",
      "hooks": {
          "resistor-calculator": {
              "apparmor": "Resistor.apparmor",
              "desktop": "Resistor.desktop"
          }
      },
      "maintainer": "me<m...@yahoo.com>",
      "name": "com.edi.ResistorCalculator",
      "title": "Resistor Calculator",
      "version": "0.9"
  }
  phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ click build .
  Successfully built package in './com.edi.ResistorCalculator_0.9_all.click'.
  phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ sudo click install 
--user=phablet com.edi.ResistorCalculator_0.9_all.click --allow-unauthenticated
  [sudo] password for phablet: 
  WARNING:root:Signature check failed, but installing anyway as requested
  phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ click info 
com.edi.ResistorCalculator
  click_database_error-quark: Failed to parse manifest in 
/opt/click.ubuntu.com/com.edi.ResistorCalculator/0.9/.click/info/com.edi.ResistorCalculator.manifest:
 Failed to open file 
'/opt/click.ubuntu.com/com.edi.ResistorCalculator/0.9/.click/info/com.edi.ResistorCalculator.manifest':
 No such file or directory (3)
  phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ ls 
/opt/click.ubuntu.com/com.edi.ResistorCalculator/0.9/.click/info
  com.edi.resistorcalculator.list      com.edi.resistorcalculator.md5sums  
format
  com.edi.resistorcalculator.manifest  com.edi.resistorcalculator.preinst

  phablet@ubuntu-phablet:~/tmp/ResistorCalculator$ lsb_release -rd
  Description:  Ubuntu 15.04
  Release:      15.04

  OTA-14 (directly on my meizu phone).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1651210/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to