module documentation
Common functionality for import-orig scripts
Function | ask |
Ask the user for the source package name. |
Function | ask |
Ask the user for the upstream package version. |
Function | cleanup |
remove a tree of temporary files |
Function | download |
Download orig tarball from given URL |
Function | is |
does symlink link already point to target? |
Function | orig |
Determine if the upstream sources needs to be repacked |
Function | repack |
Repack the upstream source tree |
Function | repacked |
Undocumented |
Ask the user for the source package name.
Parameters | |
default | The default package name to suggest to the user. |
name | Undocumented |
err | Undocumented |
Ask the user for the upstream package version.
Parameters | |
default | The default package version to suggest to the user. |
ver | Undocumented |
err | Undocumented |
Download orig tarball from given URL
Parameters | |
url:str | the download URL |
Returns | |
DebianUpstreamSource | The upstream source tarball |
Raises | |
GbpError | on all errors |
Determine if the upstream sources needs to be repacked
We repack if
- we want to filter out files via filters or post-unpack script and use pristine tar since we want to make a filtered tarball available to pristine-tar
- we don't have a suitable upstream tarball (e.g. zip archive or unpacked dir) and want to use filters
- we don't have a suitable upstream tarball (e.g. zip archive or unpacked dir) and want to use pristine-tar
- we don't have a suitable upstream tarball (e.g. zip archive or unpacked dir) and want to use a post-unpack script