Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Sugar Team
sugar-browse-activity
Commits
930e1c13
Commit
930e1c13
authored
Apr 18, 2020
by
Jonas Smedegaard
Browse files
add patch 1001 to extract GSettings schema from code
parent
d2f97151
Changes
3
Hide whitespace changes
Inline
Side-by-side
debian/patches/1001_un-embed_gsettings_schema.patch
0 → 100644
View file @
930e1c13
Description: ship non-embedded GSettings schema
Embedding the GSettings schema complicates generating during build.
This patch replicates the embedded schema as standalone file
(partly reverting git commit ffdacaa).
.
Additionally, this patch sprinkles some indentation changes
to the embedded schema,
to ensure that if upstream changes the schema
then applying the patch will fail hard
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2020-04-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/browser.py
+++ b/browser.py
@@ -110,15 +110,13 @@
[
'<?xml version="1.0" encoding="UTF-8"?>',
'<schemalist>',
- '<schema id="org.laptop.WebActivity" '
- 'path="/org/laptop/WebActivity/">',
- '<key name="home-page" type="s">',
- "<default>''</default>",
- '<summary>Home page URL</summary>',
- '<description>URL to show as default or when home button '
- 'is pressed.</description>',
- '</key>',
- '</schema>',
+ ' <schema id="org.laptop.WebActivity" path="/org/laptop/WebActivity/">',
+ ' <key name="home-page" type="s">',
+ " <default>''</default>",
+ ' <summary>Home page URL</summary>',
+ ' <description>URL to show as default or when home button is pressed.</description>',
+ ' </key>',
+ ' </schema>',
'</schemalist>',
]
open(os.path.join(path, src), 'w').writelines(lines)
--- /dev/null
+++ b/org.laptop.WebActivity.gschema.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist>
+ <schema id="org.laptop.WebActivity" path="/org/laptop/WebActivity/">
+ <key name="home-page" type="s">
+ <default>''</default>
+ <summary>Home page URL</summary>
+ <description>URL to show as default or when home buttin is pressed.</description>
+ </key>
+ </schema>
+</schemalist>
debian/patches/README
0 → 100644
View file @
930e1c13
0xxx: Grabbed from upstream development.
1xxx: Possibly relevant for upstream adoption.
2xxx: Only relevant for official Debian release.
debian/patches/series
0 → 100644
View file @
930e1c13
1001_un-embed_gsettings_schema.patch
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment