nxpackage
index
/home/andrew/Projects/nxpak/src/nxpackage.py

# $Id: nxpackage.html,v 1.6 2003/08/16 02:07:06 merlin262 Exp $

# (C)opyright 2002, 2003 Andrew McCall
#
# nxpackage.py: Package Management Routines
#
# NxPak is small, yet extremely powerful package manager.
#
# 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.

# Contributors:
#    andrew@textux.com
#

 
Modules
       
nxpk
os

 
Classes
       
invalid_packet
read_package
write_package

 
class invalid_packet
     Methods defined here:
__init__(self, packet)

 
class read_package
     Methods defined here:
__init__(self, filename)
dump(self, refNum)
inforead(self, refNum)
infotype(self, refNum)
packetInfo(self, refNum)
pkttype(self, refNum)
write_to_file(self, refNum, path, c_flags, f_flags)

 
class write_package
     Methods defined here:
__init__(self, filename)
Initialize a nxpk WritePackage.  This will attempt to create
the package file, and will overwrite any previous package by the
same name.
 
Arguments:
    (string) filename
Returns:
    class object
Bugs:
    None known.
add_dir(self, path, s_flags, p_flags)
add_dir_ex(self, path, uid, gid, mode, user, group, flags)
add_file(self, filename, path, s_flags, p_flags)
find_back_ref(self, packet)
info_html(self, g_id, p_id, text)
info_intlist(self, g_id, p_id, intlist)
info_text(self, g_id, p_id, text)
info_url(self, g_id, p_id, text)
write_packet(self, packet)

 
Functions
       
FinishNxPackage()
InitializeNxPackage()