Skip to content

Commit 71f379e

Browse files
author
Vítězslav Dvořák
committed
delete read messages
1 parent 1350817 commit 71f379e

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

debian/Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!groovy
22

3-
String[] distributions = ['debian:bookworm', 'ubuntu:jammy']
3+
String[] distributions = ['debian:bullseye', 'debian:bookworm', 'ubuntu:focal', 'ubuntu:jammy']
44

55
String vendor = 'vitexsoftware'
66
String distribution = ''
@@ -34,12 +34,12 @@ distributions.each {
3434
ansiColor('xterm') {
3535
stage('Checkout ' + distribution) {
3636
buildImage = docker.image(vendor + '/' + distribution)
37-
sh 'git checkout debian/changelog'
38-
def VERSION = sh (
37+
sh 'git checkout debian/changelog'
38+
def version = sh (
3939
script: 'dpkg-parsechangelog --show-field Version',
4040
returnStdout: true
4141
).trim()
42-
ver = VERSION + '~' + distroCodename + '~' + env.BUILD_NUMBER
42+
ver = version + '.' + env.BUILD_NUMBER + '~' + distroCodename
4343
}
4444
stage('Build ' + distribution) {
4545
buildImage.inside {

debian/changelog

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
sms-input (0.1.1) UNRELEASED; urgency=low
1+
sms-input (0.1.2) UNRELEASED; urgency=low
22

33
[ Vítězslav Dvořák ]
4-
* Initial release. Closes: #nnnn
5-
<nnnn is the bug number of your ITP>
64

7-
[ ]
8-
* Beta
5+
* delete read messages
96

10-
-- <[email protected]> Tue, 26 Mar 2024 16:11:59 +0100
7+
-- <[email protected]> Tue, 26 Mar 2024 18:59:09 +0100

src/messages2stdout.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
if ($smsCount->LocalInbox) {
1212
$messageData = [];
1313
foreach ($modem->getMessages($smsCount->LocalInbox) as $message) {
14+
$modem->deleteSms($message->getData()['index']);
1415
$messageData[] = $message->getData();
1516
}
1617
echo json_encode($messageData, \Ease\Shared::cfg('DEBUG') ? JSON_PRETTY_PRINT : 0);

0 commit comments

Comments
 (0)