unuttuğum dosyalar...
This commit is contained in:
+8
-2
@@ -5,7 +5,7 @@ from os.path import basename
|
||||
|
||||
from specfile import SpecFile
|
||||
from fetcher import Fetcher
|
||||
# import archive
|
||||
# from archive import Archive
|
||||
# import pisipackage
|
||||
# import pisiutils # patch, fileutils?
|
||||
import pisiconfig
|
||||
@@ -25,7 +25,13 @@ class PisiBuild:
|
||||
self.archiveName = basename(spec.archiveUri)
|
||||
self.spec = spec
|
||||
|
||||
def fetchArchive(self):
|
||||
def fetchArchive(self, percentHook=None):
|
||||
"""fetch an archive and store to pisiconfig.archives_dir
|
||||
using fether.Fetcher"""
|
||||
fetch = Fetcher(self.spec.archiveUri)
|
||||
if percentHook:
|
||||
fetch.percentHook = percentHook
|
||||
fetch.fetch()
|
||||
|
||||
def unpackArchive(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user