Additional informations about WorkDir in the actions.py

Sometimes in source archives (tar.gz, tar.bz2, etc.) there are a directory (=also known as “top level directory”) which stores the content of the source.

When you extract it, you will see it.

mysoftware-2.4.tar.gz
|
|-- mysoftware-2.4/
|
|-- files and folders (readme, copying, install, sources, header files, configure, make, scripts) etc. ...

Because of this ^^^ source archive, you have to define directory name in the WorkDir variable called “mysoftware-“+get.srcVERSION()

So the directory structure of the PiSi “work“ directory looks as below :

/var/pisi/mysoftware-2.4-1/work/
|
|--mysoftware-2.4/
|
|-- files and folders (readme, copying, install, sources, header files, configure, make, scripts) etc. …

And sometimes there are source archives – which does not have any “top level directory” contrary to the above example.

Example :

mysoftware-2.4.tar.gz
|
|-- files and folders (readme, copying, install, sources, header files, configure, make, scripts) etc. ...

In this case, you do not have to define any directory name. Typing just a point “.” means that the content of the source file is directly in the “work“ directory of PiSi :

/var/pisi/mysoftware-2.4-1/work/
|
|-- files and folders (readme, copying, install, sources, header files, configure, make, scripts) etc. ...