update mtmp importer
This commit is contained in:
parent
309c48d965
commit
a95eae1da5
@ -46,6 +46,9 @@ class PackageController extends Controller
|
|||||||
}
|
}
|
||||||
$url = trim(trim($row['2'], '/')) . '.git';
|
$url = trim(trim($row['2'], '/')) . '.git';
|
||||||
$url = strtr($url, $urlTranslate);
|
$url = strtr($url, $urlTranslate);
|
||||||
|
if (!strpos($url, 'github.com') && !strpos($url, 'bitbucket.org') && !strpos($url, 'repo.or.cz')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$package = Package::find()->where(['name' => $name])->one();
|
$package = Package::find()->where(['name' => $name])->one();
|
||||||
if (!$package) {
|
if (!$package) {
|
||||||
$package = new Package();
|
$package = new Package();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user