Permalink
Browse files

* put to use

  • Loading branch information...
1 parent b4a91ec commit 6820f784b402ddfe3221d574e796dfaf14c8cd2a @till committed Jun 15, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/Composer/Package/Dumper/ZipDumper.php
@@ -38,11 +38,12 @@ public function dump(PackageInterface $package)
break;
case 'hg':
$this->downloadHg($package, $workDir);
- $this->package($fileName, $workDir, \Phar::ZIP);
+ $this->packageHg($fileName, $sourceRef, $workDir);
break;
case 'svn':
+ $dir = $workDir . (substr($sourceRef, 0, 1) !== '/')?'/':'' . $sourceRef;
$this->downloadSvn($package, $workDir);
- $this->package($fileName, $workDir, \Phar::ZIP);
+ $this->package($fileName, $dir, \Phar::ZIP);
break;
default:
throw new \InvalidArgumentException("Unable to handle repositories of type '{$sourceType}'.");

0 comments on commit 6820f78

Please sign in to comment.