archive'i handle ederken targetDir parametresi ile nereye açılacağına
karar veriyoruz (henüz bu özellik çalışmıyor). Belki de targetDir'ı constructor'a değil unpac()'e vermeliyiz... Bu haline bir bakın yine de...
This commit is contained in:
+8
-5
@@ -7,7 +7,7 @@ import os
|
|||||||
|
|
||||||
from specfile import SpecFile
|
from specfile import SpecFile
|
||||||
from fetcher import Fetcher
|
from fetcher import Fetcher
|
||||||
# from archive import Archive
|
from archive import Archive
|
||||||
# import pisipackage
|
# import pisipackage
|
||||||
import util
|
import util
|
||||||
import config
|
import config
|
||||||
@@ -42,7 +42,8 @@ class PisiBuild:
|
|||||||
ui.info("Source archive is stored: %s/%s\n"
|
ui.info("Source archive is stored: %s/%s\n"
|
||||||
%(config.archives_dir(), self.spec.source.archiveName))
|
%(config.archives_dir(), self.spec.source.archiveName))
|
||||||
# solveBuildDependencies()
|
# solveBuildDependencies()
|
||||||
# unpackArchive()
|
ui.info("Unpacking archive...\n")
|
||||||
|
self.unpackArchive()
|
||||||
# applyPatches()
|
# applyPatches()
|
||||||
# buildSource()
|
# buildSource()
|
||||||
# installTarget()
|
# installTarget()
|
||||||
@@ -72,10 +73,12 @@ class PisiBuild:
|
|||||||
|
|
||||||
def unpackArchive(self):
|
def unpackArchive(self):
|
||||||
type = self.spec.source.archiveType
|
type = self.spec.source.archiveType
|
||||||
filename = self.spec.source.archiveName
|
fileName = self.spec.source.archiveName
|
||||||
archive = Archive(type, filename)
|
targetDir = config.build_work_dir(self.spec.source.name,
|
||||||
|
self.spec.source.version,
|
||||||
|
self.spec.source.release)
|
||||||
|
archive = Archive(type, fileName, targetDir)
|
||||||
archive.unpack()
|
archive.unpack()
|
||||||
pass
|
|
||||||
|
|
||||||
def applyPatches(self):
|
def applyPatches(self):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user