Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Default to patternxml when patternxml or groupxml isn't defined.
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
  • Loading branch information
Marko Saukko committed Nov 26, 2012
1 parent 3e381a4 commit 446d598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repomd-pattern-builder.py
Expand Up @@ -160,8 +160,8 @@ def merge_patterns(patterns_dir, version, release, outputdir, newobsapi):
(options, args) = parser.parse_args()

if (not options.groupxml and not options.patternxml):
print "Error: you need to use either --patternxml or --groupxml."
exit(1)
# Default to patternxml.
options.patternxml = True

if (not options.patterndir or not os.path.exists(options.patterndir)):
print "Error: Pattern dir '%s' doesn't exist." % (options.patterndir)
Expand Down

0 comments on commit 446d598

Please sign in to comment.