X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ashley;h=f29d67d19b5b31db0385306462f2e0f3e070e788;hb=5279af26b05d602c20f2e54b4674ad342801660c;hp=fdf2c6150c38bc3915867a2a29ae2ac522e1c830;hpb=9e5f0d9c81c0f0ea5fea6a40cce0ca388177f5cd;p=dak.git diff --git a/ashley b/ashley index fdf2c615..f29d67d1 100755 --- a/ashley +++ b/ashley @@ -1,8 +1,8 @@ #!/usr/bin/env python # Dump variables from a .katie file to stdout -# Copyright (C) 2001 James Troup -# $Id: ashley,v 1.3 2002-04-20 13:13:00 troup Exp $ +# Copyright (C) 2001, 2002 James Troup +# $Id: ashley,v 1.5 2002-05-10 00:24:23 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,11 +25,7 @@ def main(): Cnf = utils.get_conf() k = katie.Katie(Cnf); for arg in sys.argv[1:]: - if arg[-6:] == ".katie": - arg = arg[:-6]+".katie"; - if arg[-8:] != ".changes": - utils.warn("Skipping '%s', unknown file type." % (arg)); - continue; + arg = utils.validate_changes_file_arg(arg); k.pkg.changes_file = arg; print "%s:" % (arg); k.init_vars();