'set.locale' dep breaks #16

Closed
GarPit opened this Issue Mar 29, 2013 · 8 comments

2 participants

@GarPit

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.".

@benhoskings
Owner

Can you elaborate on how it breaks?

@GarPit

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
@benhoskings
@GarPit

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

@benhoskings
@GarPit

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! 👍

@benhoskings
@GarPit

Ok, will wait for this. Close it now

@GarPit GarPit closed this Apr 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment