If diffing against snapshot, ensure that snapshot is actually present. If not, bail out with an error message.
Signed-off-by: Jean Delvare <[email protected]> --- quilt/diff.in | 7 +++++++ 1 file changed, 7 insertions(+) --- a/quilt/diff.in +++ b/quilt/diff.in @@ -235,6 +235,13 @@ case "$opt_strip_level" in ;; esac +# If diffing against snapshot, ensure that snapshot is actually present +if [ -n "$opt_snapshot" ] && [ ! -d "$QUILT_PC/$snap_subdir" ] +then + printf $"No snapshot to diff against\n" >&2 + die 1 +fi + trap "die 1" SIGTERM tmp_files=$(gen_tempfile) -- Jean Delvare Suse L3 _______________________________________________ Quilt-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/quilt-dev
