Commit Graph

67 Commits (develop)

Author SHA1 Message Date
林博仁(Buo-ren Lin) 044fd14137 Implement custom snap version string generation
The snap version string generated by the `git` value of the `version`
key isn't mimicing the previous versioning style due to the prefixing
`v` in the git tag, this patch replace it with a custom implementation
based on the `version-script` key.

Note the `version` key is still required to exist due to schema
requirements, but has no effect when the `version-script` key is
defined.

Reference:

    Snapcraft version scripts - snapcraft - snapcraft.io
    https://forum.snapcraft.io/t/snapcraft-version-scripts/106

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 04:44:03 +08:00
林博仁(Buo-ren Lin) 7a8330aa07 ReReRevert Permission denied: '/etc/glances/glances.conf' #1403
The snapd version that supports the interface hasn't released to the
stable channel yet, and the Snap Store autoconnection isn't granted,
hold back the patch until both conditions are met.

This reverts commit c904a8a and (parts of) 108dc7b.
2019-01-26 02:57:28 +08:00
林博仁(Buo-ren Lin) 988c9a7613 Switch to automatic git versioning for snap version
Snapcraft supports `git describe` style snap version string generation
this patch exploits it.

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 02:51:44 +08:00
林博仁(Buo-ren Lin) 665626e44b Use local source tree for glances part
This avoids the additional time to clone the already existing repository

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 02:51:44 +08:00
林博仁(Buo-ren Lin) cd096cc8a8 Fix locale error due to missing compiled data
This patch hardcoded the locale variables to use the `C.UTF-8` locale
which is the only locale that is available in the Ubuntu Core.

Additional information:

* The gettext-launch remote part - doc - snapcraft.io
  https://forum.snapcraft.io/t/the-gettext-launch-remote-part/9111
* The locales-launch remote part - doc - snapcraft.io
  https://forum.snapcraft.io/t/the-locales-launch-remote-part/8729
* Python cannot determine the locale used when inside a snap - snapcraft - snapcraft.io
  https://forum.snapcraft.io/t/python-cannot-determine-the-locale-used-when-inside-a-snap/9492

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 02:51:41 +08:00
nicolargo c904a8a3fe ReRevert Permission denied: '/etc/glances/glances.conf' #1403 2019-01-24 21:38:18 +01:00
nicolargo f4e80561df Revert Permission denied: '/etc/glances/glances.conf' #1403 because Snapbuild fail 2019-01-23 22:24:50 +01:00
Tom Deckers 108dc7babe Allow use of configuration files when installed as snap.
Closes #1403
2019-01-23 20:30:27 +01:00
nicolargo 316d693c97 Glances 3.1.0 2019-01-19 16:41:03 +01:00
nicolargo 67a13ae53a Optimize process display 2018-05-12 23:02:28 +02:00
nicolargo 05066f9841 Add plugs to Glances snap 2018-01-01 10:43:34 +01:00
nicolargo 25cdc370c5 Report from master of the PR: Add missing mount-observe and system-observe interfaces #1179 2017-11-02 21:08:24 +01:00
nicolargo caa60677f7 Creation of the maintenance branche for Glances 2.x 2017-09-06 15:41:54 +02:00
nicolargo ad4763eb43 Update version and doc for Glances 2.11 2017-08-27 13:57:54 +02:00
nicolargo 74a56e078b Correct Snap for PsUtil 2017-06-25 10:17:12 +02:00
nicolargo 8cb4cc8ecb Correct PsUtil URL error in Snap file 2017-06-24 18:52:55 +02:00
nicolargo f6e1fbd36a First snamp with PsUtil and Bottle 2017-06-24 18:47:16 +02:00