summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcomptage4
1 files changed, 2 insertions, 2 deletions
diff --git a/comptage b/comptage
index 6412480..773146a 100755
--- a/comptage
+++ b/comptage
@@ -120,8 +120,8 @@ function TraiteFile ($db, $table, $path, $Verb) {
echo "+ rejected \n";
if ($ok && $Verb<4) {
- $rpm = urldecode($rpm); // ++ in name
- $ver = urldecode($ver); // ~ in version
+ if (strpos($rpm, '%')) $rpm = urldecode($rpm); // ++ in name
+ if (strpos($ver, '%')) $ver = urldecode($ver); // ~ in version
$sql = sprintf("SELECT ref FROM %s WHERE `name`='%s' AND `version`='%s' AND `release`='%s' AND `distro`='%s' AND `arch`='%s'",
$table, $rpm, $ver, $rel, $dis, $arc);