summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-02-13 10:12:39 -0600
committerDan McGee <dan@archlinux.org>2012-02-13 10:14:06 -0600
commitc7321a7b80aebeacb05ad5ab9d096779403b1758 (patch)
tree8fa7f16abc7b7af0c24ba92ababfc5c145d35eed /src
parent115c0381c235100d7b05d9751767017a9ee325c4 (diff)
parentb4f5a63e7fee5d04949e290bd63e5f0e94bd211e (diff)
Merge branch 'maint'
Conflicts: lib/libalpm/sync.c src/util/pactree.c
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c10
-rw-r--r--src/pacman/po/fi.po34
-rw-r--r--src/pacman/po/fr.po61
-rw-r--r--src/pacman/po/hu.po6
-rw-r--r--src/pacman/po/it.po17
-rw-r--r--src/pacman/util.c2
-rw-r--r--src/util/pactree.c12
7 files changed, 72 insertions, 70 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 014520e8..0349726b 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -721,7 +721,9 @@ static int parseargs(int argc, char *argv[])
return 0;
}
-/** print commandline to logfile
+/** Print command line to logfile.
+ * @param argc
+ * @param argv
*/
static void cl_to_log(int argc, char* argv[])
{
@@ -749,8 +751,8 @@ static void cl_to_log(int argc, char* argv[])
}
/** Main function.
- * @param argc argc
- * @param argv argv
+ * @param argc
+ * @param argv
* @return A return code indicating success, failure, etc.
*/
int main(int argc, char *argv[])
@@ -904,7 +906,7 @@ int main(int argc, char *argv[])
list_display("Targets :", pm_targets);
}
- /* Log commandline */
+ /* Log command line */
if(needs_root()) {
cl_to_log(argc, argv);
}
diff --git a/src/pacman/po/fi.po b/src/pacman/po/fi.po
index d1f9fd96..cd3c56e2 100644
--- a/src/pacman/po/fi.po
+++ b/src/pacman/po/fi.po
@@ -5,17 +5,17 @@
# Translators:
# apuasi <kaannokset.hellberg@gmail.com>, 2011.
# Dan McGee <dpmcgee@gmail.com>, 2011.
-# Jesse Jaara <jesse.jaara@gmail.com>, 2011.
+# Jesse Jaara <jesse.jaara@gmail.com>, 2011, 2012.
# <larso@gmx.com>, 2011, 2012.
# Larso <larso@gmx.com>, 2011.
-# Lasse Liehu <lasse.liehu@gmail.com>, 2011.
+# Lasse Liehu <lasse.liehu@gmail.com>, 2011, 2012.
msgid ""
msgstr ""
"Project-Id-Version: Arch Linux Pacman package manager\n"
"Report-Msgid-Bugs-To: http://bugs.archlinux.org/index.php?project=3\n"
"POT-Creation-Date: 2012-02-06 05:42-0600\n"
-"PO-Revision-Date: 2012-02-06 01:41+0000\n"
-"Last-Translator: Larso <larso@gmx.com>\n"
+"PO-Revision-Date: 2012-02-11 19:30+0000\n"
+"Last-Translator: Jesse Jaara <jesse.jaara@gmail.com>\n"
"Language-Team: Finnish (http://www.transifex.net/projects/p/archlinux-pacman/"
"team/fi/)\n"
"Language: fi\n"
@@ -125,8 +125,8 @@ msgstr[1] ""
#, c-format
msgid "Do you want to skip the above package for this upgrade?"
msgid_plural "Do you want to skip the above packages for this upgrade?"
-msgstr[0] "Tahdotko ohittaa yllä olevan paketin päivittämisen?"
-msgstr[1] "Tahdotko ohittaa yllä olevien pakettien päivittämisen?"
+msgstr[0] "Haluatko ohittaa yllä olevan paketin päivittämisen?"
+msgstr[1] "Haluatko ohittaa yllä olevien pakettien päivittämisen?"
#, c-format
msgid ":: There are %zd providers available for %s:\n"
@@ -322,19 +322,19 @@ msgstr "Pakettivarasto :"
#, c-format
msgid "Name :"
-msgstr "Uusi versio"
+msgstr "Nimi :"
#, c-format
msgid "Version :"
-msgstr "Koko"
+msgstr "Versio :"
#, c-format
msgid "URL :"
-msgstr "Ladataan"
+msgstr "Kotisivu :"
#, c-format
msgid "Licenses :"
-msgstr "Asennetaan:"
+msgstr "Lisenssit :"
#, c-format
msgid "Groups :"
@@ -458,7 +458,7 @@ msgstr "paketti(tit)"
#, c-format
msgid "usage"
-msgstr "käyttö"
+msgstr "Käyttö"
#, c-format
msgid "operation"
@@ -786,7 +786,7 @@ msgstr "tämän operaation suorittamiseen vaaditaan ylläpitäjän oikeudet.\n"
#, c-format
msgid "no operation specified (use -h for help)\n"
-msgstr "mitään operaatiota ei määritelty (-h valitsin tulostaa ohjeen)\n"
+msgstr "mitään operaatiota ei annettu (-h tulostaa ohjeen)\n"
#, c-format
msgid "%s is owned by %s %s\n"
@@ -870,7 +870,7 @@ msgstr "paketti %s on HoldPkg-listalla.\n"
#, c-format
msgid "HoldPkg was found in target list. Do you want to continue?"
-msgstr "HoldPkg löytyi kohdelistasta. Tahdotko jatkaa?"
+msgstr "HoldPkg löytyi kohdelistasta. Haluatko jatkaa?"
#, c-format
msgid " there is nothing to do\n"
@@ -902,7 +902,7 @@ msgstr "Tietokantakansio: %s\n"
#, c-format
msgid "Do you want to remove unused repositories?"
-msgstr "Tahdotko poistaa käyttämättömät pakettivarastot?"
+msgstr "Haluatko poistaa käyttämättömät pakettivarastot?"
#, c-format
msgid "Database directory cleaned up\n"
@@ -926,7 +926,7 @@ msgstr " Kaikki pakettilistan paketit\n"
#, c-format
msgid "Do you want to remove all other packages from cache?"
-msgstr "Tahdotko poistaa kaikki muut paketit välimuistista?"
+msgstr "Haluatko poistaa kaikki muut paketit välimuistista?"
#, c-format
msgid "removing old packages from cache...\n"
@@ -934,7 +934,7 @@ msgstr "poistetaan vanhoja paketteja välimuistista...\n"
#, c-format
msgid "Do you want to remove ALL files from cache?"
-msgstr "Tahdotko poistaa KAIKKI tiedostot välimuistista?"
+msgstr "Haluatko poistaa KAIKKI tiedostot välimuistista?"
#, c-format
msgid "removing all files from cache...\n"
@@ -1033,7 +1033,7 @@ msgid ""
":: Do you want to cancel the current operation\n"
":: and upgrade these packages now?"
msgstr ""
-":: Tahdotko peruuttaa nykyisen operaation\n"
+":: Haluatko peruuttaa nykyisen operaation\n"
":: ja päivittää nämä paketit nyt?"
#, c-format
diff --git a/src/pacman/po/fr.po b/src/pacman/po/fr.po
index 418f7a78..d85a11da 100644
--- a/src/pacman/po/fr.po
+++ b/src/pacman/po/fr.po
@@ -4,14 +4,14 @@
#
# Translators:
# Dan McGee <dpmcgee@gmail.com>, 2011.
-# <ma.jiehong@gmail.com>, 2011.
+# <ma.jiehong@gmail.com>, 2011, 2012.
# shining <chantry.xavier@gmail.com>, 2011.
msgid ""
msgstr ""
"Project-Id-Version: Arch Linux Pacman package manager\n"
"Report-Msgid-Bugs-To: http://bugs.archlinux.org/index.php?project=3\n"
"POT-Creation-Date: 2012-02-06 05:42-0600\n"
-"PO-Revision-Date: 2011-11-14 18:30+0000\n"
+"PO-Revision-Date: 2012-02-06 20:18+0000\n"
"Last-Translator: jiehong <ma.jiehong@gmail.com>\n"
"Language-Team: French (http://www.transifex.net/projects/p/archlinux-pacman/"
"team/fr/)\n"
@@ -216,8 +216,8 @@ msgstr ""
msgid ""
"config file %s, line %d: directive '%s' in section '%s' not recognized.\n"
msgstr ""
-"fichier de configuration %s, ligne %d : l'instruction '%s' dans la section "
-"'%s' n'est pas valide.\n"
+"fichier de configuration %s, ligne %d : l'instruction « %s » dans la section "
+"« %s » n'est pas valide.\n"
#, c-format
msgid "mirror '%s' contains the '%s' variable, but no '%s' is defined.\n"
@@ -227,8 +227,8 @@ msgstr ""
#, c-format
msgid "could not add server URL to database '%s': %s (%s)\n"
msgstr ""
-"ne peut pas ajouter l'URL du serveur '%2$s' à la base de données "
-"'%1$s' (%3$s)\n"
+"ne peut pas ajouter l'URL du serveur « %2$s » à la base de données « %1$s "
+"» (%3$s)\n"
#, c-format
msgid "failed to initialize alpm library (%s)\n"
@@ -240,11 +240,11 @@ msgstr " essayez de lancer pacman-db-upgrade\n"
#, c-format
msgid "problem setting logfile '%s' (%s)\n"
-msgstr "problème en définissant le chemin du fichier de log '%s' (%s)\n"
+msgstr "problème en définissant le chemin du fichier de log « %s » (%s)\n"
#, c-format
msgid "problem setting gpgdir '%s' (%s)\n"
-msgstr "problème en définissant le chemin du répertoire de gpg '%s' (%s)\n"
+msgstr "problème en définissant le chemin du répertoire de gpg « %s » (%s)\n"
#, c-format
msgid "no '%s' configured"
@@ -252,11 +252,12 @@ msgstr "%s n'est pas configuré"
#, c-format
msgid "could not register '%s' database (%s)\n"
-msgstr "l'enregistrement de la base de données '%s' a échoué (%s)\n"
+msgstr "l'enregistrement de la base de données « %s » a échoué (%s)\n"
#, c-format
msgid "could not add mirror '%s' to database '%s' (%s)\n"
-msgstr "impossible d'ajouter le mirroir '%s' à la base de données '%s' (%s)\n"
+msgstr ""
+"impossible d'ajouter le mirroir « %s » à la base de données « %s » (%s)\n"
#, c-format
msgid "config parsing exceeded max recursion depth of %d.\n"
@@ -269,23 +270,23 @@ msgstr "le fichier de configuration %s n'a pas pu être lu.\n"
#, c-format
msgid "config file %s, line %d: bad section name.\n"
-msgstr "fichier de configuration %s, ligne %d: mauvais nom de section.\n"
+msgstr "fichier de configuration %s, ligne %d : mauvais nom de section.\n"
#, c-format
msgid "config file %s, line %d: syntax error in config file- missing key.\n"
msgstr ""
-"fichier de configuration %s, ligne %d: erreur de syntaxe - clé manquante.\n"
+"fichier de configuration %s, ligne %d : erreur de syntaxe - clé manquante.\n"
#, c-format
msgid "config file %s, line %d: All directives must belong to a section.\n"
msgstr ""
-"fichier de configuration %s, ligne %d: toutes les instructions doivent "
+"fichier de configuration %s, ligne %d : toutes les instructions doivent "
"appartenir à une section.\n"
#, c-format
msgid "config file %s, line %d: directive '%s' needs a value\n"
msgstr ""
-"fichier de configuration %s, ligne %d : l'instruction '%s' a besoin d'une "
+"fichier de configuration %s, ligne %d : l'instruction « %s » a besoin d'une "
"valeur\n"
#, c-format
@@ -374,7 +375,7 @@ msgstr "Taille du téléchargement : %6.2f %s\n"
#, c-format
msgid "Compressed Size: %6.2f %s\n"
-msgstr "Taille compressé: %6.2f %s\n"
+msgstr "Taille compressé : %6.2f %s\n"
#, c-format
msgid "Installed Size : %6.2f %s\n"
@@ -438,7 +439,7 @@ msgstr "ne peut pas calculer les sommes de contrôle pour %s\n"
#, c-format
msgid "Backup Files:\n"
-msgstr "Fichiers de sauvegarde:\n"
+msgstr "Fichiers de sauvegarde :\n"
#, c-format
msgid "(none)\n"
@@ -446,7 +447,7 @@ msgstr "(aucun)\n"
#, c-format
msgid "no changelog available for '%s'.\n"
-msgstr "changelog non disponible pour '%s'.\n"
+msgstr "changelog non disponible pour « %s ».\n"
#, c-format
msgid "options"
@@ -786,7 +787,7 @@ msgstr ""
#, c-format
msgid "'%s' is not a valid debug level\n"
-msgstr "'%s' n'est pas un niveau de débogage valide\n"
+msgstr "« %s » n'est pas un niveau de débogage valide\n"
#, c-format
msgid "only one operation may be used at a time\n"
@@ -826,19 +827,19 @@ msgstr "chemin trop long : %s%s\n"
#, c-format
msgid "failed to find '%s' in PATH: %s\n"
-msgstr "impossible de trouver '%s' dans le PATH: %s\n"
+msgstr "impossible de trouver « %s » dans le PATH : %s\n"
#, c-format
msgid "failed to read file '%s': %s\n"
-msgstr "ne peut pas lire le fichier '%s': %s\n"
+msgstr "ne peut pas lire le fichier « %s » : %s\n"
#, c-format
msgid "cannot determine ownership of directory '%s'\n"
-msgstr "impossible de déterminer le propriétaire du répertoire '%s'\n"
+msgstr "impossible de déterminer le propriétaire du répertoire « %s »\n"
#, c-format
msgid "cannot determine real path for '%s': %s\n"
-msgstr "ne peut déterminer le vrai chemin pour '%s' : %s\n"
+msgstr "ne peut déterminer le vrai chemin pour « %s » : %s\n"
#, c-format
msgid "No package owns %s\n"
@@ -862,7 +863,7 @@ msgstr[1] "%jd fichiers manquants\n"
#, c-format
msgid "package '%s' was not found\n"
-msgstr "le paquet '%s' n'a pas été trouvé.\n"
+msgstr "le paquet « %s » n'a pas été trouvé.\n"
#, c-format
msgid "'%s' is a file, you might want to use %s.\n"
@@ -923,7 +924,7 @@ msgstr "Voulez-vous désinstaller %s ?"
#, c-format
msgid "Database directory: %s\n"
-msgstr "Répertoire des dépôts: %s\n"
+msgstr "Répertoire des dépôts : %s\n"
#, c-format
msgid "Do you want to remove unused repositories?"
@@ -987,11 +988,11 @@ msgstr "installé"
#, c-format
msgid "repository '%s' does not exist\n"
-msgstr "le dépôt '%s' n'a pas été trouvé\n"
+msgstr "le dépôt « %s » n'a pas été trouvé\n"
#, c-format
msgid "repository \"%s\" was not found.\n"
-msgstr "le dépôt \"%s\" n'a pas été trouvé.\n"
+msgstr "le dépôt « %s » n'a pas été trouvé.\n"
#, c-format
msgid "skipping target: %s\n"
@@ -1031,11 +1032,11 @@ msgstr "Procéder à l'installation ?"
#, c-format
msgid "%s exists in both '%s' and '%s'\n"
-msgstr "%s est présent à la fois dans '%s' et '%s'\n"
+msgstr "%s est présent à la fois dans « %s » et « %s »\n"
#, c-format
msgid "%s: %s exists in filesystem\n"
-msgstr "%s: %s est déjà présent dans le système de fichiers\n"
+msgstr "%s : %s est déjà présent dans le système de fichiers\n"
#, c-format
msgid "%s is invalid or corrupted\n"
@@ -1087,7 +1088,7 @@ msgstr "aucun dépôt de paquets utilisable n'a été défini.\n"
#, c-format
msgid "database '%s' is not valid (%s)\n"
-msgstr "la base de donnée '%s' n'est pas valide (%s)\n"
+msgstr "la base de donnée « %s » n'est pas valide (%s)\n"
#, c-format
msgid "insufficient columns available for table display\n"
@@ -1139,7 +1140,7 @@ msgstr "confiance inconnue"
#, c-format
msgid "%s, %s from \"%s\""
-msgstr "%s, %s de \"%s\""
+msgstr "%s, %s de « %s »"
#, c-format
msgid "failed to allocate string\n"
diff --git a/src/pacman/po/hu.po b/src/pacman/po/hu.po
index 75115c36..de670892 100644
--- a/src/pacman/po/hu.po
+++ b/src/pacman/po/hu.po
@@ -10,7 +10,7 @@ msgstr ""
"Project-Id-Version: Arch Linux Pacman package manager\n"
"Report-Msgid-Bugs-To: http://bugs.archlinux.org/index.php?project=3\n"
"POT-Creation-Date: 2012-02-06 05:42-0600\n"
-"PO-Revision-Date: 2012-01-17 03:36+0000\n"
+"PO-Revision-Date: 2012-02-08 01:57+0000\n"
"Last-Translator: György Balló <ballogy@freestart.hu>\n"
"Language-Team: Hungarian (http://www.transifex.net/projects/p/archlinux-"
"pacman/team/hu/)\n"
@@ -1134,7 +1134,7 @@ msgstr "Új verzió"
#, c-format
msgid "Net Change"
-msgstr "Hálózati átvitel"
+msgstr "Tiszta változás"
#, c-format
msgid "Download Size"
@@ -1158,7 +1158,7 @@ msgstr "Teljes eltávolított méret: %.2f %s\n"
#, c-format
msgid "Net Upgrade Size: %.2f %s\n"
-msgstr "Hálózati frissítés mérete: %.2f %s\n"
+msgstr "Tiszta frissítési méret: %.2f %s\n"
#, c-format
msgid "New optional dependencies for %s\n"
diff --git a/src/pacman/po/it.po b/src/pacman/po/it.po
index df3108b7..a6d4223d 100644
--- a/src/pacman/po/it.po
+++ b/src/pacman/po/it.po
@@ -4,14 +4,14 @@
#
# Translators:
# Andrea Scarpino <andrea@archlinux.org>, 2011.
-# Giovanni Scafora <giovanni@archlinux.org>, 2011.
+# Giovanni Scafora <giovanni@archlinux.org>, 2011, 2012.
msgid ""
msgstr ""
"Project-Id-Version: Arch Linux Pacman package manager\n"
"Report-Msgid-Bugs-To: http://bugs.archlinux.org/index.php?project=3\n"
"POT-Creation-Date: 2012-02-06 05:42-0600\n"
-"PO-Revision-Date: 2011-11-14 09:32+0000\n"
-"Last-Translator: giovanni <giovanni@archlinux.org>\n"
+"PO-Revision-Date: 2012-02-11 18:11+0000\n"
+"Last-Translator: Giovanni Scafora <giovanni@archlinux.org>\n"
"Language-Team: Italian (http://www.transifex.net/projects/p/archlinux-pacman/"
"team/it/)\n"
"Language: it\n"
@@ -372,9 +372,7 @@ msgstr "Sostituisce :"
#, c-format
msgid "Download Size : %6.2f %s\n"
-msgstr ""
-"Dimensione pkg : %6.2f %s\n"
-"\n"
+msgstr "Dimensione pkg : %6.2f %s\n"
#, c-format
msgid "Compressed Size: %6.2f %s\n"
@@ -422,11 +420,11 @@ msgstr "Somma MD5 :"
#, c-format
msgid "SHA256 Sum :"
-msgstr "Somma SHA256 :"
+msgstr "Somma SHA256 :"
#, c-format
msgid "Signatures :"
-msgstr "Firme :"
+msgstr "Firme :"
#, c-format
msgid "None"
@@ -710,7 +708,8 @@ msgstr " --noscriptlet non esegue un eventuale script di install\n"
msgid ""
" -p, --print print the targets instead of performing the "
"operation\n"
-msgstr "-p, --print stampa i pacchetti invece di effettuare l'operazione\n"
+msgstr ""
+" -p, --print stampa i pacchetti invece di effettuare l'operazione\n"
#, c-format
msgid ""
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 1c3699ed..ccdc2079 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -1055,7 +1055,7 @@ static double simple_pow(int base, int exp)
* @param target_unit '\0' or a short label. If equal to one of the short unit
* labels ('B', 'K', ...) bytes is converted to target_unit; if '\0', the first
* unit which will bring the value to below a threshold of 2048 will be chosen.
- * @param precision number of decimal places, ensures -0.0.0 gets rounded to
+ * @param precision number of decimal places, ensures -0.00 gets rounded to
* 0.00; -1 if no rounding desired
* @param label will be set to the appropriate unit label
*
diff --git a/src/util/pactree.c b/src/util/pactree.c
index a7dab9f1..aa02c808 100644
--- a/src/util/pactree.c
+++ b/src/util/pactree.c
@@ -168,17 +168,17 @@ static int register_syncs(void) {
size_t linelen;
char *ptr;
+ /* ignore whole line and end of line comments */
+ if((ptr = strchr(line, '#'))) {
+ *ptr = '\0';
+ }
+
linelen = strtrim(line);
- if(line[0] == '#' || !linelen) {
+ if(linelen == 0) {
continue;
}
- if((ptr = strchr(line, '#'))) {
- *ptr = '\0';
- linelen = strtrim(line);
- }
-
if(line[0] == '[' && line[linelen - 1] == ']') {
free(section);
section = strndup(&line[1], linelen - 2);