ubuntukylin-wallpapers: fix version for PEP440 compliance.
This commit is contained in:
parent
004cd98bfa
commit
37b4ed799e
2 changed files with 18 additions and 0 deletions
15
helpers/DATA/ubuntukylin-wallpapers/pep440.patch
Normal file
15
helpers/DATA/ubuntukylin-wallpapers/pep440.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index afd2fb91..6b73c251 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -9,8 +9,8 @@ changelog = "debian/changelog"
|
||||||
|
if os.path.exists(changelog):
|
||||||
|
head=open(changelog).readline()
|
||||||
|
match = re.compile(".*\((.*)\).*").match(head)
|
||||||
|
- if match:
|
||||||
|
- version = match.group(1)
|
||||||
|
+ version = match.group(1)
|
||||||
|
+ version = re.sub("([a-zA-Z])", r"+\1", version, count=1)
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name = 'ubuntukylin-wallpapers',
|
||||||
|
|
@ -23,6 +23,9 @@ VERSION=3
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
|
# Patch PEP440 version.
|
||||||
|
patch_p1 $DATA/pep440.patch
|
||||||
|
|
||||||
# Tune default background for kylin
|
# Tune default background for kylin
|
||||||
sed -i "s|background=.*|background=\"/usr/share/backgrounds/$CODENAME.jpg\"|" 30_ubuntukylin-wallpapers.gschema.override
|
sed -i "s|background=.*|background=\"/usr/share/backgrounds/$CODENAME.jpg\"|" 30_ubuntukylin-wallpapers.gschema.override
|
||||||
sed -i "s|picture-uri=.*|picture-uri=\'file:///usr/share/backgrounds/$CODENAME.jpg\'|" 30_ubuntukylin-wallpapers.gschema.override
|
sed -i "s|picture-uri=.*|picture-uri=\'file:///usr/share/backgrounds/$CODENAME.jpg\'|" 30_ubuntukylin-wallpapers.gschema.override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue