From 04f0ecfc0128f2934c31e77d9355e5b10d6a82d7 Mon Sep 17 00:00:00 2001 From: Beau Simensen Date: Thu, 9 Feb 2012 10:21:16 -0800 Subject: [PATCH 1/5] Change permission of bin links if they exist and are already links --- src/Composer/Installer/LibraryInstaller.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index db2fe535b..fe135159d 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -147,6 +147,12 @@ class LibraryInstaller implements InstallerInterface foreach ($package->getBinaries() as $bin) { $link = $this->binDir.'/'.basename($bin); if (file_exists($link)) { + if (is_link($link)) { + // likely leftover from a previous install, make sure + // that the target is still executable in case this + // is a fresh install of the vendor. + chmod($link, 0777); + } $this->io->write('Skipped installation of '.$bin.' for package '.$package->getName().', name conflicts with an existing file'); continue; } From 3cbbe1fd823d2ab29e64c34a505f85bbfabdb92a Mon Sep 17 00:00:00 2001 From: Beau Simensen Date: Thu, 9 Feb 2012 14:18:25 -0800 Subject: [PATCH 2/5] No need for group or world write permissions. --- src/Composer/Installer/LibraryInstaller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index fe135159d..0873ed63c 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -151,7 +151,7 @@ class LibraryInstaller implements InstallerInterface // likely leftover from a previous install, make sure // that the target is still executable in case this // is a fresh install of the vendor. - chmod($link, 0777); + chmod($link, 0755); } $this->io->write('Skipped installation of '.$bin.' for package '.$package->getName().', name conflicts with an existing file'); continue; @@ -162,14 +162,14 @@ class LibraryInstaller implements InstallerInterface // add unixy support for cygwin and similar environments if ('.bat' !== substr($bin, -4)) { file_put_contents($link, $this->generateUnixyProxyCode($bin, $link)); - chmod($link, 0777); + chmod($link, 0755); $link .= '.bat'; } file_put_contents($link, $this->generateWindowsProxyCode($bin, $link)); } else { symlink($bin, $link); } - chmod($link, 0777); + chmod($link, 0755); } } From d115c265cb5c5b2f7e274ecd870b7d1da1c8b4a4 Mon Sep 17 00:00:00 2001 From: Beau Simensen Date: Fri, 10 Feb 2012 07:36:36 -0800 Subject: [PATCH 3/5] Not sure I have the timing right, but figured this is a good place to start. --- doc/faqs/packagist-update-schedule.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/faqs/packagist-update-schedule.md diff --git a/doc/faqs/packagist-update-schedule.md b/doc/faqs/packagist-update-schedule.md new file mode 100644 index 000000000..af476decc --- /dev/null +++ b/doc/faqs/packagist-update-schedule.md @@ -0,0 +1,24 @@ +# Packagist Update Schedule + +## How often does Packagist crawl newly added packages? + +New packages will be crawled **every five minutes**. + + +## How often does Packagist crawl existing packages? + +Existing packages will be crawled **every hour**. + + +## How often does the Packagist search index update? + +The search index is rebuilt **every hour**. It will index (or reindex) +any package that has been crawled since the last time the search +indexer ran. + + +## Can Packagist be triggered to recrawl a package (on commit or by other means)? + +Not yet. :) Want to help? See +[#81](https://github.com/composer/packagist/issues/81) +and [#67](https://github.com/composer/packagist/issues/67) \ No newline at end of file From ba2dc9b7c37cecf3503968cb23748ea0cdfe1be6 Mon Sep 17 00:00:00 2001 From: Maks3w Date: Sun, 12 Feb 2012 09:45:04 +0100 Subject: [PATCH 4/5] Typo and coding style --- doc/DefaultPolicy.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/DefaultPolicy.md b/doc/DefaultPolicy.md index 4254e20bf..328ceec8f 100644 --- a/doc/DefaultPolicy.md +++ b/doc/DefaultPolicy.md @@ -27,7 +27,7 @@ Request: install A Packages Repo1.Av1, Repo2.Av1 * priority(Repo1) >= priority(Repo2) => (Repo1.Av1, Repo2.Av1) -* priority(Repo2) < priority(Repo2) => (Repo2.Av1, Repo1.Av1) +* priority(Repo1) < priority(Repo2) => (Repo2.Av1, Repo1.Av1) ### Virtual Packages (provides) @@ -39,7 +39,7 @@ Packages Av1, Bv1 Request: install X * priority(Av1.repo) >= priority(Bv1.repo) => (Av1, Bv1) -* priority(Av1.repo) < priority(Bv1.repo) => (Bv1, Av1) +* priority(Av1.repo) < priority(Bv1.repo) => (Bv1, Av1) ### Package replacements @@ -49,8 +49,7 @@ Packages: Av1, Bv2 Request: install A -* priority(Av1.repo) > priority(Bv2.repo) => (Av1, Bv2) -* priority(Av1.repo) = priority(Bv2.repo) => (Av1, Bv2) -* priority(Av1.repo) < priority(Bv2.repo) => (Bv2, Av1) +* priority(Av1.repo) >= priority(Bv2.repo) => (Av1, Bv2) +* priority(Av1.repo) < priority(Bv2.repo) => (Bv2, Av1) -Bv2.version is ignored, only the replacement version for A matters. +Bv2 version is ignored, only the replacement version for A matters. From bf0f0cf73eb8ee07bb44e0e15e6de9264133f863 Mon Sep 17 00:00:00 2001 From: Beau Simensen Date: Sun, 12 Feb 2012 15:24:18 -0600 Subject: [PATCH 5/5] Updated to reference @Seldaek notes and refer to GitHub Post-Receive URL PR. --- doc/faqs/packagist-update-schedule.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/faqs/packagist-update-schedule.md b/doc/faqs/packagist-update-schedule.md index af476decc..865e48a44 100644 --- a/doc/faqs/packagist-update-schedule.md +++ b/doc/faqs/packagist-update-schedule.md @@ -2,7 +2,7 @@ ## How often does Packagist crawl newly added packages? -New packages will be crawled **every five minutes**. +New packages will be crawled **within ten minutes**. ## How often does Packagist crawl existing packages? @@ -12,13 +12,11 @@ Existing packages will be crawled **every hour**. ## How often does the Packagist search index update? -The search index is rebuilt **every hour**. It will index (or reindex) +The search index is updated **every five minutes**. It will index (or reindex) any package that has been crawled since the last time the search indexer ran. ## Can Packagist be triggered to recrawl a package (on commit or by other means)? -Not yet. :) Want to help? See -[#81](https://github.com/composer/packagist/issues/81) -and [#67](https://github.com/composer/packagist/issues/67) \ No newline at end of file +Not yet. :) See [#84](https://github.com/composer/packagist/issues/84). \ No newline at end of file