summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-09-07 08:30:15 +0200
committerRemi Collet <remi@remirepo.net>2017-09-07 08:30:15 +0200
commitd1250fcf410ff969a76180d42ca1cf688d7ffd09 (patch)
treec6312da243a3f933a1c8f0ae256651fe782b1fd4
parent81bfbc7d251db1a18af5a2caf30fa96f9e1394e5 (diff)
fix comptage
-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);