Update license and copyright info on manifstutil.

git-svn-id: http://munki.googlecode.com/svn/trunk@1202 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2011-05-26 22:28:16 +00:00
parent f2c74b3bcf
commit c95c6f9fb8
+17 -4
View File
@@ -1,10 +1,23 @@
#!/usr/bin/env python
#!/usr/bin/python
# encoding: utf-8
#
# Copyright 2009-2011 Greg Neagle.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
manifestutil
Created by Greg Neagle on 2011-03-04.
Copyright (c) 2011 __MyCompanyName__. All rights reserved.
"""
import fnmatch
@@ -76,7 +89,7 @@ def getCatalogs():
catalogs_path = os.path.join(pref('repo_path'), 'catalogs')
catalogs = []
for name in os.listdir(catalogs_path):
if name.startswith("._") or name == ".DS_Store" or name == 'all':
if name.startswith(".") or name == 'all':
# don't process these
continue
try:
@@ -823,7 +836,7 @@ def main():
'configure': 'default',
'version': 'default'
}
CMD_ARG_DICT['cmds'] = cmds
CMD_ARG_DICT['cmds'] = cmds
if len(sys.argv) > 1:
# some commands or options were passed at the command line