1
0
Fork 0

Lock reference of dev packages

pull/329/head
Jordi Boggiano 2012-02-18 23:48:12 +01:00
parent 3fe87b1e35
commit c1baa20fec
1 changed files with 7 additions and 1 deletions

View File

@ -116,7 +116,13 @@ class Locker
)); ));
} }
$lock['packages'][] = array('package' => $name, 'version' => $version); $spec = array('package' => $name, 'version' => $version);
if ($package->isDev()) {
$spec['reference'] = $package->getSourceReference();
}
$lock['packages'][] = $spec;
} }
$this->lockFile->write($lock); $this->lockFile->write($lock);