Index: commands/pm/package_handler/wget.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/pm/package_handler/wget.inc,v
retrieving revision 1.5
diff -u -p -r1.5 wget.inc
--- commands/pm/package_handler/wget.inc	2 Jun 2009 03:45:44 -0000	1.5
+++ commands/pm/package_handler/wget.inc	21 Nov 2009 00:06:03 -0000
@@ -20,6 +20,9 @@ function package_handler_install_project
   $filename = array_pop($filename);
   $fullpath = $path . $filename;
 
+  // Set our directory to the download location
+  chdir($path);
+
   // Download it.
   if (!drush_shell_exec("wget " . $info['download_link'])) {
     drush_shell_exec("curl -O " . $info['download_link']);
@@ -44,8 +47,9 @@ function package_handler_install_project
   // Decompress
   drush_shell_exec("gzip -d " . $filename);
   $tarpath = substr($filename, 0, strlen($filename)-3);
+
   // Untar
-  drush_shell_exec("tar -xf $tarpath -C \"$path\"");
+  drush_shell_exec("tar -xf $tarpath");
   // We're not using tar -xzf because that's not working on windows...
 
   // Remove the tarball
