summaryrefslogtreecommitdiffstats
path: root/checkpkgist.php
diff options
context:
space:
mode:
Diffstat (limited to 'checkpkgist.php')
-rwxr-xr-xcheckpkgist.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkpkgist.php b/checkpkgist.php
index a57ab25..fc01ae8 100755
--- a/checkpkgist.php
+++ b/checkpkgist.php
@@ -39,7 +39,7 @@ if (!ini_get('date.timezone')) {
define ('VERSION', '1.1.0-dev');
class PkgClient {
- const URL = 'https://packagist.org/';
+ const URL = 'https://repo.packagist.org/';
protected $cache;
function __construct () {
@@ -140,7 +140,7 @@ function run($name, $rpm) {
if ($rpminfo) {
$rpminfo = $rpminfo[0];
- $rpmmainver = $rpminfo['Version'];
+ $rpmmainver = str_replace('~', '', $rpminfo['Version']);
} else {
if ($quiet) {
return;