Your message dated Mon, 12 Feb 2024 01:00:33 +0000
with message-id <e1rzkgt-0099mw...@fasolo.debian.org>
and subject line Bug#1061224: fixed in python-launchpadlib 1.11.0-3
has caused the Debian Bug report #1061224,
regarding python-launchpadlib: Add systemd user unit to clean up cache files
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1061224: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061224
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-launchpadlib
Version: 1.11.0-2
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Hi Stefano,
As an Ubuntu developer and regular user of launchpadlib-based tools, one of
the usability issues I've noticed over time is that the launchpadlib cache
grows without bounds. I had cleaned up my directory at some point in the
past year; and as of today, it's 7.8GiB.
Now that systemd units are a thing, we can reasonably provide support by
default in the packaging to expire out the contents of these per-user cache
directories.
Please find attached a patch that implements a systemd service and timer
unit to expire out files from the cache that are over 30 days old.
Running this on my own system has reduced the cache size from 7.8GiB to
2.8GiB.
I have uploaded this change to Ubuntu.
Thanks for considering,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slanga...@ubuntu.com vor...@debian.org
diff -Nru python-launchpadlib-1.11.0/debian/launchpadlib-cache-clean.service
python-launchpadlib-1.11.0/debian/launchpadlib-cache-clean.service
--- python-launchpadlib-1.11.0/debian/launchpadlib-cache-clean.service
1969-12-31 16:00:00.000000000 -0800
+++ python-launchpadlib-1.11.0/debian/launchpadlib-cache-clean.service
2024-01-20 14:42:10.000000000 -0800
@@ -0,0 +1,6 @@
+[Unit]
+Description=Clean up old files in the Launchpadlib cache
+
+[Service]
+Type=oneshot
+ExecStart=find %h/.launchpadlib/api.launchpad.net/cache -type f -mtime +30
-delete
diff -Nru python-launchpadlib-1.11.0/debian/launchpadlib-cache-clean.timer
python-launchpadlib-1.11.0/debian/launchpadlib-cache-clean.timer
--- python-launchpadlib-1.11.0/debian/launchpadlib-cache-clean.timer
1969-12-31 16:00:00.000000000 -0800
+++ python-launchpadlib-1.11.0/debian/launchpadlib-cache-clean.timer
2024-01-20 14:42:10.000000000 -0800
@@ -0,0 +1,9 @@
+[Unit]
+Description=Clean up old files in the Launchpadlib cache
+
+[Timer]
+OnStartupSec=5min
+OnUnitActiveSec=1d
+
+[Install]
+WantedBy=timers.target
diff -Nru python-launchpadlib-1.11.0/debian/rules
python-launchpadlib-1.11.0/debian/rules
--- python-launchpadlib-1.11.0/debian/rules 2023-12-26 06:53:57.000000000
-0800
+++ python-launchpadlib-1.11.0/debian/rules 2024-01-20 14:42:10.000000000
-0800
@@ -23,3 +23,9 @@
override_dh_python3:
dh_python3 --no-guessing-deps
+
+override_dh_install:
+ dh_install
+ mkdir -p debian/python3-launchpadlib/usr/lib/systemd/user
+ cp debian/launchpadlib-cache-clean* \
+ debian/python3-launchpadlib/usr/lib/systemd/user/
--- End Message ---
--- Begin Message ---
Source: python-launchpadlib
Source-Version: 1.11.0-3
Done: Stefano Rivera <stefa...@debian.org>
We believe that the bug you reported is fixed in the latest version of
python-launchpadlib, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1061...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Stefano Rivera <stefa...@debian.org> (supplier of updated python-launchpadlib
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 11 Feb 2024 10:23:17 -0400
Binary: python3-launchpadlib python3-launchpadlib-desktop
Source: python-launchpadlib
Architecture: all source
Version: 1.11.0-3
Distribution: experimental
Urgency: medium
Maintainer: Stefano Rivera <stefa...@debian.org>
Changed-By: Stefano Rivera <stefa...@debian.org>
Closes: 1061224
Description:
python3-launchpadlib-desktop - Launchpad web services client library with
credential storage (Py
python3-launchpadlib - Launchpad web services client library (Python 3)
Changes:
python-launchpadlib (1.11.0-3) experimental; urgency=medium
.
* Upload to experimental for NEW processing.
* Install a systemd user timer to periodically clean the launchpadlib cache.
Thanks Steve Langasek. (Closes: #1061224)
* Add a new binary package, python3-launchpadlib-desktop, that can depend on
python3-keyring. The change in 1.11.0-2 to drop it broke desktop clients.
(LP: #2049217)
Checksums-Sha1:
e659053102483124b1e80bd57f84498287293ccb 2170 python-launchpadlib_1.11.0-3.dsc
474200d0920372fa46e963f81798e2183ed6ac48 12028
python-launchpadlib_1.11.0-3.debian.tar.xz
17f7ee1b98ff9489f70b15ed3c7105c77624e8ed 7563
python-launchpadlib_1.11.0-3_source.buildinfo
65cfe2cdbad46d1a6bec5aa89791e72a0db39158 7315
python-launchpadlib_1.11.0-3_amd64.buildinfo
5ae8b88d34bce69fd236ad7d7f476c175dc74588 8488
python3-launchpadlib-desktop_1.11.0-3_all.deb
1f834294e1cb364432de6563924de04e8b43eb83 135904
python3-launchpadlib_1.11.0-3_all.deb
Checksums-Sha256:
95efc82802fbb085a73474bbf13dd1a612f1b6d5ee06f372940d7d6197de8a8b 2170
python-launchpadlib_1.11.0-3.dsc
7597d94694d07a5a6db927f2ef50d5f77dfd41989910481c91bf295445f26029 12028
python-launchpadlib_1.11.0-3.debian.tar.xz
27f3752ed0211c32a7800a4d106724617b3c1d44854a2f9b187e44351db00686 7563
python-launchpadlib_1.11.0-3_source.buildinfo
25b4e311b649dd6ce6a99f62b02b73a446396eb7914a1224fa5cc13c2101c0e7 7315
python-launchpadlib_1.11.0-3_amd64.buildinfo
a7d8bcac69d9c89b2126b0b6c2aee53081023bb80ee1b59f411ad2127b9177cc 8488
python3-launchpadlib-desktop_1.11.0-3_all.deb
86d77facec6e7faa19f1ac70771e2fd2cce7e862d422bc8bb13db9c4342c7330 135904
python3-launchpadlib_1.11.0-3_all.deb
Files:
2b4b754c64378975f19b38396e933619 2170 python optional
python-launchpadlib_1.11.0-3.dsc
afccce35c6ec8542dfb7486f24138f33 12028 python optional
python-launchpadlib_1.11.0-3.debian.tar.xz
ac90e0fe16fdfa2b4b3c7166536ae890 7563 python optional
python-launchpadlib_1.11.0-3_source.buildinfo
b5788494f133d5abbc6f52b211599c8e 7315 python optional
python-launchpadlib_1.11.0-3_amd64.buildinfo
64f3a1db28c9cd1587b0b1688c0be80c 8488 python optional
python3-launchpadlib-desktop_1.11.0-3_all.deb
a64fd2537dd76f60b87ab47debb05f27 135904 python optional
python3-launchpadlib_1.11.0-3_all.deb
-----BEGIN PGP SIGNATURE-----
iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCZcjY7RQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2K0yAQD0pjIdw0UEU8vxznCd6UqMnwnK1f3a
5oCXDzVVAjib9gEAwRtbCb/NuuV2gnnJDK2c2F8EXgv1V+kJWCHUppYw0QI=
=UK95
-----END PGP SIGNATURE-----
pgpTJy_XE5z7p.pgp
Description: PGP signature
--- End Message ---