Eray'in ekraninda acik ne gorduysem svn'e add edip commit ediyorum (meren)..
This commit is contained in:
@@ -0,0 +1 @@
|
||||
# dependency analyzer
|
||||
@@ -0,0 +1,27 @@
|
||||
#import package
|
||||
from specfile import SpecFile
|
||||
from package import Package
|
||||
#import repodb
|
||||
#import packagedb
|
||||
#import dependency
|
||||
#import conflicts
|
||||
|
||||
|
||||
def install_package_file(package_fn):
|
||||
|
||||
package = Package(package_fn, "r")
|
||||
# extract control files
|
||||
package.extract_files(tmp_dir + "install/")
|
||||
|
||||
# verify package
|
||||
# check file semantics
|
||||
# check file system requirements
|
||||
# check conflicts
|
||||
# check dependencies
|
||||
|
||||
# unzip package in place
|
||||
|
||||
# update databases
|
||||
|
||||
# installdb
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# installation database
|
||||
@@ -0,0 +1,19 @@
|
||||
# package abstraction
|
||||
# provides methods to add/remove files, extract control files
|
||||
|
||||
class Package:
|
||||
"""Package: PISI package class"""
|
||||
def __init__(self, packagefn, mode):
|
||||
self.filename = packagefn
|
||||
self.mode = mode
|
||||
# etc. etc.
|
||||
|
||||
def add_file(fn):
|
||||
"""add a file to package"""
|
||||
|
||||
def extract(outdir):
|
||||
"""extract package contents to directory"""
|
||||
|
||||
def extract_PISI_files(outdir):
|
||||
"""extract PISI control files: metadata.xml, files.xml,
|
||||
action scripts, etc."""
|
||||
@@ -0,0 +1,2 @@
|
||||
# package database
|
||||
# interface for update/query to local package repository
|
||||
@@ -2,6 +2,11 @@
|
||||
|
||||
import xml.dom.minidom
|
||||
|
||||
class Patch:
|
||||
def __init__(self, filename, patchtype):
|
||||
self.filename = filename
|
||||
self.compressionType = patchtype
|
||||
|
||||
class XmlFile(object):
|
||||
"""A class for retrieving information from an XML file"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user