Version Notes
1.6.1.0
Download this release
Release Info
Developer | Magento Core Team |
Extension | Lib_Mage |
Version | 1.6.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.6.0.0 to 1.6.1.0
- lib/Mage/Connect/Package.php +12 -8
- package.xml +5 -5
lib/Mage/Connect/Package.php
CHANGED
@@ -258,7 +258,7 @@ END;
|
|
258 |
|
259 |
/**
|
260 |
* Creates a package archive and saves it to specified path
|
261 |
-
* Package is compatible with the previous version of magento Connect Manager
|
262 |
*
|
263 |
* @param string $path
|
264 |
* @return Mage_Connect_Package
|
@@ -666,12 +666,7 @@ END;
|
|
666 |
if (!empty($entries)) {
|
667 |
foreach ($entries as $entry) {
|
668 |
$filePath = substr($entry, $targetDirLen);
|
669 |
-
|
670 |
-
continue;
|
671 |
-
}
|
672 |
-
if (!empty($exclude) && preg_match($exclude, $filePath)) {
|
673 |
-
continue;
|
674 |
-
}
|
675 |
if (is_dir($entry)) {
|
676 |
$baseName = basename($entry);
|
677 |
if (in_array($baseName, array('.', '..', '.svn'))) {
|
@@ -679,7 +674,16 @@ END;
|
|
679 |
}
|
680 |
//for subdirectory call method recursively
|
681 |
$this->addContentDir($targetName, $filePath, $exclude, $include);
|
682 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
683 |
$this->addContent($filePath, $targetName);
|
684 |
}
|
685 |
}
|
258 |
|
259 |
/**
|
260 |
* Creates a package archive and saves it to specified path
|
261 |
+
* Package is compatible with the previous version of magento Connect Manager
|
262 |
*
|
263 |
* @param string $path
|
264 |
* @return Mage_Connect_Package
|
666 |
if (!empty($entries)) {
|
667 |
foreach ($entries as $entry) {
|
668 |
$filePath = substr($entry, $targetDirLen);
|
669 |
+
// TODO: Check directory before includes/excludes
|
|
|
|
|
|
|
|
|
|
|
670 |
if (is_dir($entry)) {
|
671 |
$baseName = basename($entry);
|
672 |
if (in_array($baseName, array('.', '..', '.svn'))) {
|
674 |
}
|
675 |
//for subdirectory call method recursively
|
676 |
$this->addContentDir($targetName, $filePath, $exclude, $include);
|
677 |
+
continue;
|
678 |
+
}
|
679 |
+
if (!empty($include) && !preg_match($include, $filePath)) {
|
680 |
+
continue;
|
681 |
+
}
|
682 |
+
if (!empty($exclude) && preg_match($exclude, $filePath)) {
|
683 |
+
continue;
|
684 |
+
}
|
685 |
+
|
686 |
+
if (is_file($entry)) {
|
687 |
$this->addContent($filePath, $targetName);
|
688 |
}
|
689 |
}
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Lib_Mage</name>
|
4 |
-
<version>1.6.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Mage Library</summary>
|
10 |
<description>Mage Library</description>
|
11 |
-
<notes>1.6.
|
12 |
<authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
|
13 |
-
<date>2011-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelib"><dir name="Mage"><dir name="Archive"><file name="Abstract.php" hash="facb355053858f94439409d8657757ff"/><file name="Bz.php" hash="bce512d3062f936f1a8c12bf5c408b64"/><file name="Gz.php" hash="0dca1839014c71886a8a93186bb993d0"/><file name="Interface.php" hash="ef441008981545b886dcab6f386a6882"/><file name="Tar.php" hash="9f09ed124af89b683897246503ea9832"/></dir><file name="Archive.php" hash="f7745fb5794efd8e0a2adaef4a3f6f12"/><dir name="Autoload"><file name="Simple.php" hash="0112e880807596fbe8822be12314f14f"/></dir><dir name="Connect"><dir name="Channel"><file name="Generator.php" hash="a1f115e909680bca8c1b1f0940244b13"/><file name="Parser.php" hash="ec2e7380ec4bca81de2795f96975e778"/><file name="VO.php" hash="870a1b9b28d85dd72b2b1e2529dca354"/></dir><dir name="Command"><file name="Channels.php" hash="12f730285615329cba0b570385009837"/><file name="Channels_Header.php" hash="934366a4daa1ebe87b25cb9dfa061798"/><file name="Config.php" hash="5091776f35732d8b0ff12c8ff3561c69"/><file name="Config_Header.php" hash="119a103ed71b326993756961b6c7c2a0"/><file name="Install.php" hash="2f7227a1f4003d6ce6edec4a0ce02e0f"/><file name="Install_Header.php" hash="71f0b6bad2f745235352d181bcc66645"/><file name="Package.php" hash="b36bdc6a3c0f6bc9d7766a37c046a481"/><file name="Package_Header.php" hash="dc3840a95f89ef844df40c585582815d"/><file name="Registry.php" hash="f9fde28940ff38dbc336335d575a295d"/><file name="Registry_Header.php" hash="559edbac0f3d267c8ca289e526b940d1"/><file name="Remote.php" hash="6f959617993d58aec974d578921b6212"/><file name="Remote_Header.php" hash="4b56cd683710de6c81241f902570ba25"/></dir><file name="Command.php" hash="0d474da0956a292aa83e88da4975c527"/><file name="Config.php" hash="511f752123ccc6c148a6a308fc3f81b2"/><file name="Converter.php" hash="1cde84613c6079050bb3824aba3b380d"/><dir name="Frontend"><file name="CLI.php" hash="86e6631d9345d5bf9d15148cfdace3bf"/></dir><file name="Frontend.php" hash="0a97c590fdc9844b225638d631315d35"/><file name="Ftp.php" hash="095b9ad01ea60418b1667732cb374d95"/><dir name="Loader"><file name="Ftp.php" hash="0ca46737d25bf0eb321414f2d8b7ced0"/></dir><file name="Loader.php" hash="009d6f986d5ff406f7e94d2b395f6e25"/><dir name="Package"><file name="Extension.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Hotfix.php" hash="850bd23783a77dbf6f50b4f169c2c7b3"/><file name="Maintainer.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Reader.php" hash="ca384e066ac21168e0a7aebc5da869c1"/><file name="Target.php" hash="351af5965f7870d3f4e960d402805b17"/><file name="VO.php" hash="9ffbdff9210474b68db7caddf9a5fe5a"/><file name="Writer.php" hash="431f107ab2ffd1977f74a94ae16481d1"/></dir><file name="Package.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Lib_Mage</name>
|
4 |
+
<version>1.6.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Mage Library</summary>
|
10 |
<description>Mage Library</description>
|
11 |
+
<notes>1.6.1.0</notes>
|
12 |
<authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
|
13 |
+
<date>2011-10-19</date>
|
14 |
+
<time>11:50:03</time>
|
15 |
+
<contents><target name="magelib"><dir name="Mage"><dir name="Archive"><file name="Abstract.php" hash="facb355053858f94439409d8657757ff"/><file name="Bz.php" hash="bce512d3062f936f1a8c12bf5c408b64"/><file name="Gz.php" hash="0dca1839014c71886a8a93186bb993d0"/><file name="Interface.php" hash="ef441008981545b886dcab6f386a6882"/><file name="Tar.php" hash="9f09ed124af89b683897246503ea9832"/></dir><file name="Archive.php" hash="f7745fb5794efd8e0a2adaef4a3f6f12"/><dir name="Autoload"><file name="Simple.php" hash="0112e880807596fbe8822be12314f14f"/></dir><dir name="Connect"><dir name="Channel"><file name="Generator.php" hash="a1f115e909680bca8c1b1f0940244b13"/><file name="Parser.php" hash="ec2e7380ec4bca81de2795f96975e778"/><file name="VO.php" hash="870a1b9b28d85dd72b2b1e2529dca354"/></dir><dir name="Command"><file name="Channels.php" hash="12f730285615329cba0b570385009837"/><file name="Channels_Header.php" hash="934366a4daa1ebe87b25cb9dfa061798"/><file name="Config.php" hash="5091776f35732d8b0ff12c8ff3561c69"/><file name="Config_Header.php" hash="119a103ed71b326993756961b6c7c2a0"/><file name="Install.php" hash="2f7227a1f4003d6ce6edec4a0ce02e0f"/><file name="Install_Header.php" hash="71f0b6bad2f745235352d181bcc66645"/><file name="Package.php" hash="b36bdc6a3c0f6bc9d7766a37c046a481"/><file name="Package_Header.php" hash="dc3840a95f89ef844df40c585582815d"/><file name="Registry.php" hash="f9fde28940ff38dbc336335d575a295d"/><file name="Registry_Header.php" hash="559edbac0f3d267c8ca289e526b940d1"/><file name="Remote.php" hash="6f959617993d58aec974d578921b6212"/><file name="Remote_Header.php" hash="4b56cd683710de6c81241f902570ba25"/></dir><file name="Command.php" hash="0d474da0956a292aa83e88da4975c527"/><file name="Config.php" hash="511f752123ccc6c148a6a308fc3f81b2"/><file name="Converter.php" hash="1cde84613c6079050bb3824aba3b380d"/><dir name="Frontend"><file name="CLI.php" hash="86e6631d9345d5bf9d15148cfdace3bf"/></dir><file name="Frontend.php" hash="0a97c590fdc9844b225638d631315d35"/><file name="Ftp.php" hash="095b9ad01ea60418b1667732cb374d95"/><dir name="Loader"><file name="Ftp.php" hash="0ca46737d25bf0eb321414f2d8b7ced0"/></dir><file name="Loader.php" hash="009d6f986d5ff406f7e94d2b395f6e25"/><dir name="Package"><file name="Extension.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Hotfix.php" hash="850bd23783a77dbf6f50b4f169c2c7b3"/><file name="Maintainer.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Reader.php" hash="ca384e066ac21168e0a7aebc5da869c1"/><file name="Target.php" hash="351af5965f7870d3f4e960d402805b17"/><file name="VO.php" hash="9ffbdff9210474b68db7caddf9a5fe5a"/><file name="Writer.php" hash="431f107ab2ffd1977f74a94ae16481d1"/></dir><file name="Package.php" hash="bf5af87c29959f229de7b69d1d94f1e0"/><file name="Packager.php" hash="37df01e250a103684b37a6f0b71b3128"/><dir name="Repository"><file name="Abstract.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><dir name="Channel"><file name="Abstract.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Commercial.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Community.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Core.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="Channel.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Local.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="Repository.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Rest.php" hash="ba2d2365fc989274940e1fdff6476875"/><file name="Singleconfig.php" hash="975c04d57cbce24327e84a93d9f5443e"/><dir name="Structures"><file name="Graph.php" hash="b85283fd2af6fd54fb748cb6ea933842"/><file name="Node.php" hash="26a7e4041c3d2fd93bfdc3c692c85ede"/></dir><file name="Validator.php" hash="3ac1b21ec703073d5dd9b5dda3471fe8"/></dir><dir name="DB"><file name="Exception.php" hash="e0b55d77af8e215135ef223f593832ad"/><file name="Mysqli.php" hash="5057ea65f441bbb00c7e55298e9252a4"/></dir><file name="Exception.php" hash="9bf1aefdb7fd166d25889f36707997dc"/><dir name="HTTP"><dir name="Client"><file name="Curl.php" hash="f537a9879781ec3fe2748677bee43737"/><file name="Socket.php" hash="7a889fed729d92eba849d6fdfa32d7d6"/></dir><file name="Client.php" hash="7072f9366680bc5ebc1c447700193cb4"/><file name="IClient.php" hash="88a4a88a31a05a2154d430d7b4308ff6"/></dir><dir name="System"><file name="Args.php" hash="8080a06707f4393b9155441ed4160f4a"/><file name="Dirs.php" hash="adc832887e04f359b2ec050b0b2e6d17"/></dir><dir name="Xml"><file name="Generator.php" hash="0ddc93b0c75885f67d049d0a38c630fa"/><file name="Parser.php" hash="b2bdc0880cd5bc2d82468ee075e783a2"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|