Hi,

On Fri, Feb 10, 2012 at 10:35:06AM +0100, Alessandro Ghedini wrote:
> would it be possible to use the ~/.cache/devscripts directory to hold the
> cache files instead of ~/.devscripts_cache? IMO it is a little bit nicer
> and wouldn't require to add yet another directory directly under home.

FWIW, I've attached a patch that changes those (where used).

Sebastian
From 77180c5d228eaf0b263da6ede0d96ef2da003ce9 Mon Sep 17 00:00:00 2001
From: Sebastian Schmidt <[email protected]>
Date: Tue, 14 Oct 2014 10:19:02 +0200
Subject: [PATCH] Change ~/.devscripts_cache to ~/.cache/devscripts

According to #659330.
---
 po4a/po/de.po          | 20 ++++++++++----------
 po4a/po/devscripts.pot |  8 ++++----
 po4a/po/fr.po          | 16 ++++++++--------
 scripts/bts.pl         |  4 ++--
 scripts/rc-alert.1     |  4 ++--
 scripts/rc-alert.pl    |  4 ++--
 scripts/wnpp-alert.1   |  2 +-
 scripts/wnpp-alert.sh  |  2 +-
 8 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/po4a/po/de.po b/po4a/po/de.po
index 33a8ce3..c9a8f01 100644
--- a/po4a/po/de.po
+++ b/po4a/po/de.po
@@ -2612,7 +2612,7 @@ msgid ""
 "belonging to several people or packages. If multiple packages or addresses "
 "are supplied, bugs belonging to any of the arguments will be cached; those "
 "belonging to more than one of the arguments will only be downloaded once. "
-"The cached bugs are stored in F<~/.devscripts_cache/bts/>."
+"The cached bugs are stored in F<~/.cache/devscripts/bts/>."
 msgstr ""
 "erzeugt oder aktualisiert einen Zwischenspeicher von Fehlerberichten für die "
 "gegebene E-Mail-Adresse oder das gegebene Paket. Standardmäßig lädt es alle "
@@ -2623,7 +2623,7 @@ msgstr ""
 "mehrere Pakete oder Adressen mitgegeben werden, werden Fehler "
 "zwischengespeichert, die zu allen Argumenten gehören; diejenigen, die zu "
 "mehr als einem Argument gehören, werden nur einmal heruntergeladen. Die "
-"zwischengespeicherten Fehler werden in F<~/.devscripts_cache/bts/> "
+"zwischengespeicherten Fehler werden in F<~/.cache/devscripts/bts/> "
 "gespeichert."
 
 #. type: textblock
@@ -17217,11 +17217,11 @@ msgstr ""
 #. type: Plain text
 #: ../scripts/rc-alert.1:17
 msgid ""
-"If the directory I<~/.devscripts_cache> exists or the B<--cache> option is "
+"If the directory I<~/.cache/devscripts> exists or the B<--cache> option is "
 "given, then the (sizable) downloaded list will be cached, and will only be "
 "downloaded again on a second invocation if it has changed."
 msgstr ""
-"Falls das Verzeichnis I<~/.devscripts_cache> existiert oder die Option B<--"
+"Falls das Verzeichnis I<~/.cache/devscripts> existiert oder die Option B<--"
 "cache> angegeben wurde, wird die (ziemlich große) heruntergeladene Liste "
 "zwischengespeichert und bei einem zweiten Aufruf nur erneut geladen, falls "
 "sie sich geändert hat."
@@ -17234,10 +17234,10 @@ msgstr "B<--cache>"
 
 #. type: Plain text
 #: ../scripts/rc-alert.1:21
-msgid "Force the creation of the I<~/.devscripts_cache> cache directory."
+msgid "Force the creation of the I<~/.cache/devscripts> cache directory."
 msgstr ""
-"erzwingt das Erstellen des Zwischenspeicherverzeichnisses I<~/."
-"devscripts_cache>."
+"erzwingt das Erstellen des Zwischenspeicherverzeichnisses I<~/.cache/"
+"devscripts>."
 
 #. type: Plain text
 #: ../scripts/rc-alert.1:31
@@ -21122,12 +21122,12 @@ msgstr "B<--diff>, B<-d>"
 #. type: Plain text
 #: ../scripts/wnpp-alert.1:23
 msgid ""
-"If the I<~/.devscripts_cache> directory exists, compare the output of B<wnpp-"
+"If the I<~/.cache/devscripts> directory exists, compare the output of B<wnpp-"
 "alert> to the previous output (cached in the file I<wnpp-diff>) and output "
 "the differences."
 msgstr ""
-"vergleicht die Ausgabe von B<wnpp-alert>, falls das Verzeichnis I<~/."
-"devscripts_cache> existiert, mit der vorherigen Ausgabe (in der Datei I<wnpp-"
+"vergleicht die Ausgabe von B<wnpp-alert>, falls das Verzeichnis I<~/.cache/"
+"devscripts> existiert, mit der vorherigen Ausgabe (in der Datei I<wnpp-"
 "diff> zwischengespeichert) und gibt die Unterschiede aus."
 
 #. type: Plain text
diff --git a/po4a/po/devscripts.pot b/po4a/po/devscripts.pot
index 069fb01..801a851 100644
--- a/po4a/po/devscripts.pot
+++ b/po4a/po/devscripts.pot
@@ -1939,7 +1939,7 @@ msgid ""
 "belonging to several people or packages. If multiple packages or addresses "
 "are supplied, bugs belonging to any of the arguments will be cached; those "
 "belonging to more than one of the arguments will only be downloaded "
-"once. The cached bugs are stored in F<~/.devscripts_cache/bts/>."
+"once. The cached bugs are stored in F<~/.cache/devscripts/bts/>."
 msgstr ""
 
 #. type: textblock
@@ -13463,7 +13463,7 @@ msgstr ""
 #. type: Plain text
 #: ../scripts/rc-alert.1:17
 msgid ""
-"If the directory I<~/.devscripts_cache> exists or the B<--cache> option is "
+"If the directory I<~/.cache/devscripts> exists or the B<--cache> option is "
 "given, then the (sizable) downloaded list will be cached, and will only be "
 "downloaded again on a second invocation if it has changed."
 msgstr ""
@@ -13476,7 +13476,7 @@ msgstr ""
 
 #. type: Plain text
 #: ../scripts/rc-alert.1:21
-msgid "Force the creation of the I<~/.devscripts_cache> cache directory."
+msgid "Force the creation of the I<~/.cache/devscripts> cache directory."
 msgstr ""
 
 #. type: Plain text
@@ -16544,7 +16544,7 @@ msgstr ""
 #. type: Plain text
 #: ../scripts/wnpp-alert.1:23
 msgid ""
-"If the I<~/.devscripts_cache> directory exists, compare the output of "
+"If the I<~/.cache/devscripts> directory exists, compare the output of "
 "B<wnpp-alert> to the previous output (cached in the file I<wnpp-diff>) and "
 "output the differences."
 msgstr ""
diff --git a/po4a/po/fr.po b/po4a/po/fr.po
index 3e8fd07..d03623f 100644
--- a/po4a/po/fr.po
+++ b/po4a/po/fr.po
@@ -2619,7 +2619,7 @@ msgid ""
 "belonging to several people or packages. If multiple packages or addresses "
 "are supplied, bugs belonging to any of the arguments will be cached; those "
 "belonging to more than one of the arguments will only be downloaded once. "
-"The cached bugs are stored in F<~/.devscripts_cache/bts/>."
+"The cached bugs are stored in F<~/.cache/devscripts/bts/>."
 msgstr ""
 "Créer ou mettre à jour le cache des rapports de bogue pour l'adresse "
 "électronique ou le paquet indiqué. Par défaut, cela télécharge tous les "
@@ -2630,7 +2630,7 @@ msgstr ""
 "paquets. Si plusieurs paquets ou adresses sont fournis, les bogues "
 "correspondant à l'un des paramètres seront mis en cache ; ceux correspondant "
 "à plusieurs paramètres ne seront téléchargés qu'une seule fois. Les bogues "
-"mis en cache sont stockés dans F<~/.devscripts_cache/bts/>."
+"mis en cache sont stockés dans F<~/.cache/devscripts/bts/>."
 
 #. type: textblock
 #: ../scripts/bts.pl:2121
@@ -17236,11 +17236,11 @@ msgstr ""
 #. type: Plain text
 #: ../scripts/rc-alert.1:17
 msgid ""
-"If the directory I<~/.devscripts_cache> exists or the B<--cache> option is "
+"If the directory I<~/.cache/devscripts> exists or the B<--cache> option is "
 "given, then the (sizable) downloaded list will be cached, and will only be "
 "downloaded again on a second invocation if it has changed."
 msgstr ""
-"Si le répertoire I<~/.devscripts_cache> existe ou que l'option B<--cache> "
+"Si le répertoire I<~/.cache/devscripts> existe ou que l'option B<--cache> "
 "est donnée, la liste de téléchargement (qui peut être importante) sera mise "
 "en cache et sera seulement téléchargée une nouvelle fois lors d'une seconde "
 "invocation si elle a changé."
@@ -17253,8 +17253,8 @@ msgstr "B<--cache>"
 
 #. type: Plain text
 #: ../scripts/rc-alert.1:21
-msgid "Force the creation of the I<~/.devscripts_cache> cache directory."
-msgstr "Force la création du répertoire de cache I<~/.devscripts_cache>."
+msgid "Force the creation of the I<~/.cache/devscripts> cache directory."
+msgstr "Force la création du répertoire de cache I<~/.cache/devscripts>."
 
 #. type: Plain text
 #: ../scripts/rc-alert.1:31
@@ -21120,11 +21120,11 @@ msgstr "B<--diff>, B<-d>"
 #. type: Plain text
 #: ../scripts/wnpp-alert.1:23
 msgid ""
-"If the I<~/.devscripts_cache> directory exists, compare the output of B<wnpp-"
+"If the I<~/.cache/devscripts> directory exists, compare the output of B<wnpp-"
 "alert> to the previous output (cached in the file I<wnpp-diff>) and output "
 "the differences."
 msgstr ""
-"Si le répertoire I<~/.devscripts_cache> existe, comparer la sortie de B<wnpp-"
+"Si le répertoire I<~/.cache/devscripts> existe, comparer la sortie de B<wnpp-"
 "alert> à la sortie précédente (en cache dans le fichier I<wnpp-diff>) et "
 "afficher les différences."
 
diff --git a/scripts/bts.pl b/scripts/bts.pl
index b156edf..668fd40 100755
--- a/scripts/bts.pl
+++ b/scripts/bts.pl
@@ -168,7 +168,7 @@ my @valid_severities=qw(wishlist minor normal important
 
 my $browser;  # Will set if necessary
 
-my $cachedir=$ENV{'HOME'}."/.devscripts_cache/bts/";
+my $cachedir=$ENV{'HOME'}."/.cache/devscripts/bts/";
 my $timestampdb=$cachedir."bts_timestamps.db";
 my $prunestamp=$cachedir."bts_prune.timestamp";
 
@@ -2116,7 +2116,7 @@ variable if B<DEBEMAIL> is unset). This command may be repeated to cache
 bugs belonging to several people or packages. If multiple packages or
 addresses are supplied, bugs belonging to any of the arguments will be
 cached; those belonging to more than one of the arguments will only be
-downloaded once. The cached bugs are stored in F<~/.devscripts_cache/bts/>.
+downloaded once. The cached bugs are stored in F<~/.cache/devscripts/bts/>.
 
 You can use the cached bugs with the B<-o> switch. For example:
 
diff --git a/scripts/rc-alert.1 b/scripts/rc-alert.1
index 840de79..6fe26a6 100644
--- a/scripts/rc-alert.1
+++ b/scripts/rc-alert.1
@@ -10,14 +10,14 @@ rc-alert \- check for installed packages with release-critical bugs
 Debian BTS webpages, and then outputs a list of packages installed on
 the system, or given on the command-line, which are in that list.
 .P
-If the directory \fI~/.devscripts_cache\fP exists or the
+If the directory \fI~/.cache/devscripts\fP exists or the
 \fB\-\-cache\fP option is given, then the (sizable) downloaded list
 will be cached, and will only be downloaded again on a second
 invocation if it has changed.
 .SH OPTIONS
 .TP
 .BR \-\-cache
-Force the creation of the \fI~/.devscripts_cache\fP cache directory.
+Force the creation of the \fI~/.cache/devscripts\fP cache directory.
 .TP
 .BR \-\-help ", " \-h
 Show a summary of options.
diff --git a/scripts/rc-alert.pl b/scripts/rc-alert.pl
index 555b5f5..fb695e3 100755
--- a/scripts/rc-alert.pl
+++ b/scripts/rc-alert.pl
@@ -32,7 +32,7 @@ sub human_flags($);
 sub unhtmlsanit($);
 sub dt_parse_request($);
 
-my $cachedir = $ENV{'HOME'}."/.devscripts_cache/";
+my $cachedir = $ENV{'HOME'}."/.cache/devscripts/";
 my $url = "http://bugs.debian.org/release-critical/other/all.html";;
 my $cachefile = $cachedir . basename($url);
 my $forcecache = 0;
@@ -83,7 +83,7 @@ Usage: $progname [--help|--version|--cache] [package ...]
   release-critical bugs list.
 
   Options:
-  --cache           Create ~/.devscripts_cache directory if it does not exist
+  --cache           Create ~/.cache/devscripts directory if it does not exist
 
   Matching options: (see the manpage for further information)
   --include-tags     Set of tags to include
diff --git a/scripts/wnpp-alert.1 b/scripts/wnpp-alert.1
index 2b777b8..3b85e38 100644
--- a/scripts/wnpp-alert.1
+++ b/scripts/wnpp-alert.1
@@ -17,7 +17,7 @@ package based.
 .SH OPTIONS
 .TP
 .BR \-\-diff ", " \-d
-If the \fI~/.devscripts_cache\fP directory exists, compare the output of
+If the \fI~/.cache/devscripts\fP directory exists, compare the output of
 \fBwnpp-alert\fR to the previous output (cached in the file
 \fIwnpp-diff\fR) and output the differences.
 .TP
diff --git a/scripts/wnpp-alert.sh b/scripts/wnpp-alert.sh
index a524cc4..5f71ef4 100755
--- a/scripts/wnpp-alert.sh
+++ b/scripts/wnpp-alert.sh
@@ -16,7 +16,7 @@
 set -e
 
 PROGNAME="${0##*/}"
-CACHEDIR=~/.devscripts_cache
+CACHEDIR=~/.cache/devscripts
 CACHEDDIFF="${CACHEDIR}/wnpp-diff"
 CURLORWGET=""
 GETCOMMAND=""
-- 
2.1.1

Attachment: signature.asc
Description: Digital signature

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to