@@ -105,19 +105,17 @@ public function installPackage(PackageInterface $package, InstallerInterface $in
105105
106106 // if package is already installed, match current version with latest available version
107107 if ($ this ->isPackageInstalled ($ package )) {
108+ $ this ->output ->writelnInfoPackage ($ package , 'validate ' , sprintf ('%s against %s#%s ' , $ packageTag , $ package ->getName (), $ package ->getRequiredVersion ()));
108109 $ packageBower = $ this ->config ->getPackageBowerFileContent ($ package );
109110 if ($ packageTag == $ packageBower ['version ' ]) {
110111 // if version is fully matching, there's no need to install
111112 return ;
112113 }
113114 }
114115
115- $ this ->output ->writelnInfoPackage ($ package );
116-
117- $ this ->output ->writelnInstalledPackage ($ package );
118-
119116 $ this ->cachePackage ($ package );
120117
118+ $ this ->output ->writelnInstalledPackage ($ package );
121119 $ installer ->install ($ package );
122120
123121 $ overrides = $ this ->config ->getOverrideFor ($ package ->getName ());
@@ -182,17 +180,18 @@ public function updatePackage(PackageInterface $package, InstallerInterface $ins
182180 $ package ->setRequires (isset ($ bower ['dependencies ' ]) ? $ bower ['dependencies ' ] : null );
183181
184182 $ packageTag = $ this ->getPackageTag ($ package );
183+ $ this ->output ->writelnInfoPackage ($ package , 'validate ' , sprintf ('%s against %s#%s ' , $ packageTag , $ package ->getName (), $ package ->getRequiredVersion ()));
184+
185185 $ package ->setRepository ($ this ->repository );
186186 if ($ packageTag == $ package ->getVersion ()) {
187187 // if version is fully matching, there's no need to update
188188 return ;
189189 }
190190 $ package ->setVersion ($ packageTag );
191191
192- $ this ->output ->writelnUpdatingPackage ($ package );
193-
194192 $ this ->cachePackage ($ package );
195193
194+ $ this ->output ->writelnUpdatingPackage ($ package );
196195 $ installer ->update ($ package );
197196
198197 $ overrides = $ this ->config ->getOverrideFor ($ package ->getName ());
@@ -448,6 +447,8 @@ protected function findPackage($name)
448447 */
449448 private function cachePackage (PackageInterface $ package )
450449 {
450+ $ this ->output ->writelnInfoPackage ($ package , 'download ' );
451+
451452 // get release archive from repository
452453 $ file = $ this ->repository ->getRelease ();
453454
0 commit comments