Closed larsbutler closed 10 years ago
The issue seems to be here: https://github.com/zerovm/zpm/blob/2cfa9390ba6d7f6dab068f8d13ca5429fe2cc7af/zpmlib/zpm.py#L275
The usage of glob
here expects a valid pattern (a single file, a wildcard, etc.). If no files match the pattern, we never enter the inner loop to add files to the tar file.
I suggest two things to fix this:
zapp
tar file. Raise an exception.I agree with your analysis. Warning when the glob pattern doesn't match anything seems like a nice idea. Raising an exception is nothing matched at all is probably also okay.
I discovered this issue when I made a typo in a bundling list file name (in the zapp.yaml). Bundling silently proceeds if the file doesn't exist.
I don't think it should do this.