瀏覽代碼

Relax repo 404 "die" to just "warn and next" (darn cassandra, still in-progress)

Tianon Gravi 10 年之前
父節點
當前提交
3b5860d665
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      push.pl

+ 1 - 1
push.pl

@@ -164,7 +164,7 @@ while (my $repo = shift) { # '/_/hylang', '/u/tianon/perl', etc
 	
 	my $repoUrl = 'https://registry.hub.docker.com' . $repo . '/settings/';
 	my $repoTx = $ua->get($repoUrl);
-	die 'failed to get: ' . $repoUrl unless $repoTx->success;
+	warn 'failed to get: ' . $repoUrl and next unless $repoTx->success;
 	
 	my $settingsForm = $repoTx->res->dom('form[name="repository_settings"]')->first;
 	die 'failed to find form on ' . $repoUrl unless $settingsForm;