Permalink
Browse files

Block directive for pkg ver

  • Loading branch information...
zachhuff386 committed Sep 6, 2015
1 parent d7c3ee7 commit d13cd3198eed638286ccb4bdf7be7105199b0a00
Showing with 7 additions and 0 deletions.
  1. +7 −0 pack/pack.go
View
@@ -74,6 +74,13 @@ func (p *Pack) parseDirective(input string) (key string, pry int, err error) {
return
}
if key == "pkgver" || key == "pkgrel" {
err = &ParseError{
errors.Newf("pack: Cannot use directive for '%s'", key),
}
return
}
dirc := split[1]
if constants.ReleasesSet.Contains(dirc) {

0 comments on commit d13cd31

Please sign in to comment.