snapcraft clean media-codecs -s pull
is checking for each file to remove before cleaning media-codecs, if a single file is missing it returning with an error and cancelling clean step for media-codecs. which is keeing the media-codecs pull step hence the command is failing what it does.
which is resulting in the following error if other snapcraft commands are passed to build package.
Failed to reuse files from previous build: The 'pull' step of 'media-codecs' is out of date:
The 'stage-packages' part property appears to have changed.
To continue, clean that part's 'pull' step, run `snapcraft clean media-codecs -s pull`.
What is expected:
snapcraft clean media-codecs -s pull command pull step of media-codecs part should be cleaned without checking if file exist before deleting it.
How this can be regenerated:
- Create a simple snapcraft project with some part with stage-packages in it.
- Remove some files from prime location example unwanted man pages.
snapcraft clean partname -s pull(partname is name if oart in )
You will end up getting error telling you to do
snapcraft clean partname -s pullfor forever.
This was not like this before. Hence its a bug.