(follow-up of #16, an issue found by @Bob-A-Dook)
Captain's code hits the "no-success path" when handling a package if the package name contains uppercase letters (even when it's successfully installed), because the line
if self.deb.pkgname in cache:
evaluates to False.
That's because the value of self.deb.pkgname is OCO-Agent, while the cache object only has a lowercase entry oco-agent after installation:
<Package: name:'oco-agent' architecture='amd64' id:166258>
Looks like there is a mismatch between how Captain and APT normalize package names. As a result, Captain doesn't find some packages in cache and doesn't consider it fully installed.
This leads to two side effects:
- there is no "OCO-Agent is now installed" message after the installation finishes,
- the Install Package button stays green and clickable after the installation, even if you close and reopen the DEB file.
In contrast, APT rightfully considers the package as installed.
(follow-up of #16, an issue found by @Bob-A-Dook)
Captain's code hits the "no-success path" when handling a package if the package name contains uppercase letters (even when it's successfully installed), because the line
evaluates to False.
That's because the value of self.deb.pkgname is OCO-Agent, while the cache object only has a lowercase entry oco-agent after installation:
Looks like there is a mismatch between how Captain and APT normalize package names. As a result, Captain doesn't find some packages in cache and doesn't consider it fully installed.
This leads to two side effects:
In contrast, APT rightfully considers the package as installed.