python API: added license text to source file and added an api version

This commit is contained in:
Tim Lauridsen 2008-09-21 12:08:54 +02:00
parent cc6f7c3c34
commit cdc235ed26
2 changed files with 19 additions and 1 deletions

View File

@ -15,6 +15,8 @@ import dbus
from enums import *
from misc import *
__api_version__ = '0.1.0'
class PackageKitError(Exception):
'''PackageKit error.

View File

@ -1,7 +1,23 @@
#!/usr/bin/python
#
# Licensed under the GNU General Public License Version 2
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# (c) 2008
## Tim Lauridsen <timlau@fedoraproject.org>
# Tim Lauridsen <timlau@fedoraproject.org>
# Misc classes and funtions