Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

'set.locale' dep breaks #16

Closed
GarPit opened this Issue · 8 comments

2 participants

PitOn Ben Hoskings
PitOn

met? {
shell('locale').val_for('LANG')[locale_regex(locale_name)]
}

I guess the reason it's not met is "Setting the locale doesn't take effect until you log out and back in.".

Ben Hoskings
Owner

Can you elaborate on how it breaks?

PitOn

Ok, it breaks for me in scope of Postgres install dep:

dep 'postgres.managed', :version do
  version.default('9.2')
  requires 'set.locale'
  requires_when_unmet 'postgres.apt_repository'
  met? { shell? "psql --version"  }
  meet {
    shell("apt-get -y install -t squeeze-pgdg postgresql-#{version} libpq-dev")
  }  
end
Ben Hoskings
Owner
PitOn

Yes, that's how it's supposed to be. But "it breaks" the whole stack installation on Debian server :-) If it's not possible to run it without interruption, it's ok - I'll put up with this

Ben Hoskings
Owner
PitOn

Thanks for sharing this - really cool! So you install it from local machine (using remote_babushka) and specially run locale deps 2 times to catch its fail programmatically. Nice! :+1:

Ben Hoskings
Owner
PitOn

Ok, will wait for this. Close it now

PitOn GarPit closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.