File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed
lib/indicator_sound_switcher Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,8 @@ APP_VERSION=$(sed -ne 's/\s*APP_VERSION\s*=\s*\x27\([^\x27]\+\)\x27.*/\1/p' "$SE
37
37
echo " Building ${APP_NAME} version ${APP_VERSION} revision ${REVISION} ..."
38
38
39
39
# Verify the changelog contains the appropriate line
40
- app_ver_string=" ${APP_NAME} (${APP_VERSION} -${REVISION} )"
41
- (head -n 1 " debian/changelog" | grep -q " $app_ver_string " ) ||
42
- err " The changelog doesn't start with the entry '${app_ver_string} '"
40
+ [[ " $( dpkg-parsechangelog -S version) " == " $APP_VERSION -$REVISION " ]] ||
41
+ err " The changelog doesn't start with the entry for version $APP_VERSION -$REVISION "
43
42
44
43
# Initial cleanup: clean the dist dirs
45
44
[[ ! -d " $DIST_ROOT_DIR " ]] || rm -rf " $DIST_ROOT_DIR " || err " Removing $DIST_ROOT_DIR failed"
Original file line number Diff line number Diff line change
1
+ indicator-sound-switcher (2.3.5.2-1) focal; urgency=low
2
+
3
+ * Determine app version based on the installed package
4
+
5
+ -- Dmitry Kann <
[email protected] > Sun, 27 Dec 2020 20:25:24 +0200
6
+
1
7
indicator-sound-switcher (2.3.5.1-1) focal; urgency=low
2
8
3
9
* No-change commit to address Launchpad failure
Original file line number Diff line number Diff line change 1
1
import os .path
2
2
import logging
3
3
import time
4
+ import pkg_resources
4
5
5
6
import gi
6
7
24
25
# Global definitions
25
26
APP_ID = 'indicator-sound-switcher'
26
27
APP_NAME = 'Sound Switcher Indicator'
27
- APP_VERSION = '2.3.5'
28
28
APP_LICENCE = """This program is free software: you can redistribute it and/or modify it
29
29
under the terms of the GNU General Public License version 3, as published
30
30
by the Free Software Foundation.
37
37
You should have received a copy of the GNU General Public License along
38
38
with this program. If not, see http://www.gnu.org/licenses/"""
39
39
40
+ # Determine app version
41
+ APP_VERSION = pkg_resources .require (APP_ID )[0 ].version
42
+
40
43
YESNO = {False : 'No' , True : 'Yes' }
41
44
42
45
CARD_NONE_SINK = - 1
Original file line number Diff line number Diff line change 6
6
7
7
8
8
APP_ID = 'indicator-sound-switcher'
9
- APP_VERSION = '2.3.5'
9
+ APP_VERSION = '2.3.5.2 '
10
10
11
11
12
12
def compile_lang_files () -> list :
You can’t perform that action at this time.
0 commit comments