I tried running the "drush selfupdate" command and I get the response "Cannot determine release date for drush". I tried doing this in the drush directory as well and received the same.

Comments

MichaelCole’s picture

Status: Active » Closed (works as designed)

Hi,

To update Drush in quickstart, do the following (copied from the project home page):

cd ~/quickstart
git pull
bash -x update.sh

Drush in Quickstart is checked out from the git repo, not the packaged zip on drupal.org. This makes several things easier, but apparently "drush selfupdate" doesn't know how to deal with this situation.

Marking not a bug for Quickstart, but I think it's a bug for Drush.

Good luck!

Mike

shiva7663’s picture

Component: Miscellaneous » Image Build

update.sh displays the following, but doesn't actually appear to do anything to upgrade Drush:

quickstart@qs091:~/quickstart$ bash -x update.sh 
+ cd /home/quickstart/quickstart
+ DRUSH=7.x-4.4
+ DRUSH_MAKE=6.x-2.2
+ echo '*** Run '\''git pull'\'' before running this to get latest version ***'
*** Run 'git pull' before running this to get latest version ***
+ echo 'Updating Drush to 7.x-4.4'
Updating Drush to 7.x-4.4
+ cd /home/quickstart/drush
+ git checkout 7.x-4.4
+ echo 'Updating Drush Make to 6.x-2.2'
Updating Drush Make to 6.x-2.2
+ cd /home/quickstart/.drush/drush_make
+ git checkout 6.x-2.2
l_o_l’s picture

The messages might be confusing, but it does work.

Why is the detour through git pull necessary ?
Because Drush is now at 4.5 but quickstart only updates to 4.4
Quickstart has to be updated first to reflect this change ?

philosurfer’s picture

bump....

gmclelland’s picture

running update.sh didn't do anything for me. Drush still reports that it is 4.4. There have been some big improvements in Drush 4.5 that I think we need.

One example is using git to apply patches in a make file. A lot of distributions won't install because of the installed Drush 4.4.

If anyone knows of a way to install the latest, I'm all ears.

DjebbZ’s picture

To update Drush to 4.5

cd ~/drush # where it's installed
git pull # grab the latest code
git tag # see the list of available official releases
git checkout 7.x-4.5 # Important ! Drush quickstart-create doesn't work with the latest 5.x-dev
gmclelland’s picture

Thanks @DjebbZ, that worked. Just what I needed.

DjebbZ’s picture

Status: Closed (works as designed) » Needs work

You're welcome gmclelland :)

Marking it "needs work" because update.sh needs to change the Drush variable to update to 4.5. But I have no idea how to submit a patch for this image, neither if the file is actually versioned by Git to submit a patch... Maintainers ?

matt v.’s picture

In case it may help someone else, the equivalent commands for Drush Make are:

cd /home/quickstart/.drush/drush_make
git pull
git tag
git checkout 6.x-2.3
JoeAndrieu’s picture

FWIW, I'm having this same problem. I tried with both apt-get and pear installations, neither handled the self-update properly. Once I checked it out using git, I could do it (although I had to re-run pear to get the symbolic link working for /usr/bin/drush)

Is there a solution for fixing self updating that doesn't require starting with a clean git checkout?

vacilando’s picture

Any chance to update Quickstart so that bash -x update.sh brings Drush to version 5 while making sure that quickstart-create (see #6) keeps functioning under Drush 5? Thanks!

traviscarden’s picture

MichaelCole’s picture

Category: bug » support
Status: Needs work » Fixed

quickstart@qs10:~/websites$ cd ..
quickstart@qs10:~$ drush dl drush
Would you like to back up your current drush version 4.4 to /home/quickstart/drush-backups/unknown/20120503235138 and replace it with drush 5.1? (y/n): y
drush backed up to /home/quickstart/drush-backups/unknown/20120503235138/drush [ok]
Project drush (7.x-5.1) downloaded to /home/quickstart/drush. [success]
Drush successfully updated to version 7.x-5.1. [success]

mike stewart’s picture

Status: Fixed » Closed (fixed)
scuba_fly’s picture

Status: Closed (fixed) » Active

When i try:
quickstart@qs10:~$ drush dl drush
I'm getting:
File drush-7.x-5.7.tar.gz is corrupt (wrong md5 checksum).
no matter how many times I try I keep getting the md5 checksum error.

Can I fix this?

scuba_fly’s picture

Status: Active » Closed (fixed)

hmm seems I needed to be root this worked:
quickstart@qs10:~$ sudo drush dl drush
Would you like to back up your current drush version 4.4 to /home/quickstart/drush-backups/unknown/20121009134104 and replace it with drush 5.7? (y/n): y
drush backed up to /home/quickstart/drush-backups/unknown/20121009134104/drush [ok]
Project drush (7.x-5.7) downloaded to /home/quickstart/drush. [success]
Drush successfully updated to version 7.x-5.7.

mclinn’s picture

#6 worked great for me. Just getting involved with drush, had v 4.4 on a Quickstart 1.0 vm. Now it's at 5.8 and I'm all set. Thanks!
(initially got the same "unable to update" msg when I tried drush self-update)