[noarch/entropy] add QA warning about dev-lang/ghc bumps

This commit is contained in:
Fabio Erculiani 2012-04-24 13:53:50 +02:00
parent 7b1df35d10
commit c175d6e905
1 changed files with 20 additions and 0 deletions

View File

@ -171,6 +171,22 @@ def warn_perl5_bump():
return 0
def warn_haskell_bump():
"""
Warn in case of bumping dev-lang/ghc. Developer should not
forget about running haskell-updater.
"""
pkg_key = "%s/%s" % (os.getenv("PKG_CATEGORY", ""),
os.getenv("PKG_NAME", ""))
pkg_version = os.getenv("PKG_VERSION", "")
if pkg_key == "dev-lang/ghc":
write_warning_msg(
"Bumping dev-lang/ghc !!!\n"
"Make sure to run 'haskell-updater' !\n")
return 1
return 0
if __name__ == "__main__":
@ -183,6 +199,10 @@ if __name__ == "__main__":
if rc != 0 and rc > exit_st:
exit_st = rc
rc = warn_haskell_bump()
if rc != 0 and rc > exit_st:
exit_st = rc
# more tests here
raise SystemExit(exit_st)