com web/rmtools: some more magic for tbz: client/include/PeclExt.php
| From: | Anatol Belski | Date: | Tue, 01 Oct 2013 09:58:13 +0000 |
| Subject: | com web/rmtools: some more magic for tbz: client/include/PeclExt.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-19133@lists.php.net to get a copy of this message | ||
Commit: 6d48676881a734315edc8503491347de0f08e9be
Author: Anatol Belski <ab@php.net> Tue, 1 Oct 2013 11:58:13 +0200
Parents: 6e4b7325bf561be05c06d5485e0a73eaebbc8cc9
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=6d48676881a734315edc8503491347de0f08e9be
Log:
some more magic for tbz
Changed paths:
M client/include/PeclExt.php
Diff:
diff --git a/client/include/PeclExt.php b/client/include/PeclExt.php
index eb1fcb7..6cac35c 100644
--- a/client/include/PeclExt.php
+++ b/client/include/PeclExt.php
@@ -43,6 +43,12 @@ class PeclExt
} else if ('.tbz' == substr($pkg_path, -4)) {
$this->pkg_basename = basename($pkg_path, '.tbz');
$this->pkg_fmt = 'tbz';
+ } else if ('.tbz2' == substr($pkg_path, -5)) {
+ $this->pkg_basename = basename($pkg_path, '.tbz2');
+ $this->pkg_fmt = 'tbz';
+ } else if ('.tb2' == substr($pkg_path, -4)) {
+ $this->pkg_basename = basename($pkg_path, '.tb2');
+ $this->pkg_fmt = 'tbz';
} else if ('.tar.bz2' == substr($pkg_path, -8)) {
$this->pkg_basename = basename($pkg_path, '.tar.bz2');
$this->pkg_fmt = 'tbz';