Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 08, 2018
* sourceBaseDir is work-*/sources/
* sourceDir is work-*/sources/$SOURCE_DIR
* SOURCE_DIR will be created at extract, so don't create it,
  but still create work-*/sources/ as it doesn't exist yet.
* Detect a missing SOURCE_DIR after extraction, and error.
Showing with 4 additions and 1 deletion.
  1. +4 −1 HaikuPorter/Source.py
@@ -209,12 +209,15 @@ def unpack(self, port):
if os.path.exists(self.sourceBaseDir):
info('Cleaning source dir for ' + self.fetchTargetName)
shutil.rmtree(self.sourceBaseDir)
os.makedirs(self.sourceDir)
os.makedirs(self.sourceBaseDir)

info('Unpacking source of ' + self.fetchTargetName)
self.sourceFetcher.unpack(self.sourceBaseDir, self.sourceSubDir,
self.sourceExportSubdir)

if not os.path.exists(self.sourceDir):
sysExit(self.sourceSubDir + ' doesn\'t exist in sources! Define SOURCE_DIR in recipe?')

port.setFlag('unpack', self.index)

def populateAdditionalFiles(self, baseDir):

No commit comments for this range

You can’t perform that action at this time.