Merge ~utkarsh/ubuntu/+source/at:lp1464051-at-focal into ubuntu/+source/at:ubuntu/focal-devel

Proposed by Utkarsh Gupta
Status: Rejected
Rejected by: Christian Ehrhardt 
Proposed branch: ~utkarsh/ubuntu/+source/at:lp1464051-at-focal
Merge into: ubuntu/+source/at:ubuntu/focal-devel
Diff against target: 56 lines (+37/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/03-do-not-drop-seconds.patch (+28/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+400006@code.launchpad.net

Description of the change

Hello,

This MP intends to fix LP: #1464051, by making at respecting seconds, which it didn't before.

The fix is trivial and should be easy to consider.
PPA at https://launchpad.net/~utkarsh/+archive/ubuntu/at

There were no tests but I've done a manual test and also ran the DEP8 tests which are now present in hirsute.

Requesting you to please review and sponsor the upload. Let me know if you have questions or suggestion.

To post a comment you must log in.
Revision history for this message
Sergio Durigan Junior (sergiodj) :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Furthermore the SRU policy dictates that we'd also want to see a groovy upload for the same.
At least when sponsoring we'd want to do both at once.
Probably the very same change there ...
I didn't see an MP for it yet - is that in the working?

Other than this and Sergios comment this LGTM already.

Will be interesting to see the SRU dicsussion on behavior change on this one ...

+1 under the condition to have the other two things sorted out.

review: Approve
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Sergio's suggestion incorporated.
Groovy MP up at https://code.launchpad.net/~utkarsh/ubuntu/+source/at/+git/at/+merge/400019.

Good to go from my end, please re-review and sponsor. TIA! \o/

Revision history for this message
Bryce Harrington (bryce) wrote :

Since I reviewed/sponsored the groovy package, I went ahead and sponsored this one too so they'll both be in place for SRU review.

$ git push pkg upload/3.1.23-1ubuntu1.1
Enumerating objects: 16, done.
Counting objects: 100% (16/16), done.
Delta compression using up to 12 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (11/11), 1.90 KiB | 176.00 KiB/s, done.
Total 11 (delta 5), reused 1 (delta 0)
To ssh://git.launchpad.net/ubuntu/+source/at
 * [new tag] upload/3.1.23-1ubuntu1.1 -> upload/3.1.23-1ubuntu1.1

$ dput ubuntu at_3.1.23-1ubuntu1.1_source.changes
Checking signature on .changes
gpg: /home/bryce/pkg/At/review-mp400019/focal/at_3.1.23-1ubuntu1.1_source.changes: Valid signature from E603B2578FB8F0FB
Checking signature on .dsc
gpg: /home/bryce/pkg/At/review-mp400019/focal/at_3.1.23-1ubuntu1.1.dsc: Valid signature from E603B2578FB8F0FB
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading at_3.1.23-1ubuntu1.1.dsc: done.
  Uploading at_3.1.23-1ubuntu1.1.debian.tar.xz: done.
  Uploading at_3.1.23-1ubuntu1.1_source.buildinfo: done.
  Uploading at_3.1.23-1ubuntu1.1_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Per discussion int he bug this was rejected

Unmerged commits

7536eea... by Utkarsh Gupta

changelog

Signed-off-by: Utkarsh Gupta <email address hidden>

021f5ed... by Utkarsh Gupta

d/patches: add 03-do-not-drop-seconds.patch (cherry-pick).

When calculating time for the job, do not drop seconds.

LP: #1464051
Gbp-Dch: full

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index d64e8c5..1b6277d 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+at (3.1.23-1ubuntu1.1) focal; urgency=medium
7+
8+ * d/patches: add 03-do-not-drop-seconds.patch (cherry-pick).
9+ When calculating time for the job, do not drop seconds.
10+ (LP: #1464051)
11+
12+ -- Utkarsh Gupta <utkarsh.gupta@canonical.com> Mon, 22 Mar 2021 19:49:48 +0530
13+
14 at (3.1.23-1ubuntu1) disco; urgency=medium
15
16 * Merge with Debian unstable (LP: #1802914). Remaining changes:
17diff --git a/debian/patches/03-do-not-drop-seconds.patch b/debian/patches/03-do-not-drop-seconds.patch
18new file mode 100644
19index 0000000..4aede80
20--- /dev/null
21+++ b/debian/patches/03-do-not-drop-seconds.patch
22@@ -0,0 +1,28 @@
23+From 15ee22de9dfd67d9c97404302623a9d45ce887a2 Mon Sep 17 00:00:00 2001
24+From: Jose M Calhariz <calhariz@debian.org>
25+Date: Wed, 17 Jul 2019 02:18:15 +0100
26+Subject: [PATCH] when calculating time for the job, do not drop seconds
27+Origin: upstream, https://salsa.debian.org/debian/at/-/commit/15ee22de9dfd67d9c97404302623a9d45ce887a2
28+Bug-Debian: https://bugs.debian.org/792040
29+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/at/+bug/1464051
30+
31+---
32+ at.c | 2 --
33+ 1 file changed, 2 deletions(-)
34+
35+diff --git a/at.c b/at.c
36+index 2136e0b..48884ec 100644
37+--- a/at.c
38++++ b/at.c
39+@@ -860,8 +860,6 @@ main(int argc, char **argv)
40+ fprintf(stderr, "invalid date format: %s\n", optarg);
41+ exit(EXIT_FAILURE);
42+ }
43+- /* drop seconds */
44+- timer -= timer % 60;
45+ break;
46+
47+ default:
48+--
49+GitLab
50+
51diff --git a/debian/patches/series b/debian/patches/series
52index e69de29..1dacf3a 100644
53--- a/debian/patches/series
54+++ b/debian/patches/series
55@@ -0,0 +1 @@
56+03-do-not-drop-seconds.patch

Subscribers

People subscribed via source and target branches