[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Quilt-dev] [patch 1/5] Verbosly fail when trying to push a non exis
From: |
Jean Delvare |
Subject: |
Re: [Quilt-dev] [patch 1/5] Verbosly fail when trying to push a non existant patch |
Date: |
Thu, 17 Jan 2013 10:53:42 +0100 |
Le mercredi 19 décembre 2012 à 15:35 +0100, address@hidden a
écrit :
> pièce jointe document texte brut (fail_on_missing)
> Description: Verbosly fail when trying to push a non existant patch
> Useful if there is a typo in the serie file.
> This can be overriden by providing -f.
> Bug-Debian: http://bugs.debian.org/358875
> Forwarded: sent 2012-12-19
>
> ---
> quilt/push.in | 7 +++++++
> test/missing.test | 4 ++++
> 2 files changed, 11 insertions(+)
>
> --- a/quilt/push.in
> +++ b/quilt/push.in
> @@ -184,6 +184,13 @@ add_patch()
> no_reject_files="-r $tmp"
> fi
>
> + if [ ! -e "$patch_file" -a -z "$opt_force" ]
> + then
> + printf $"Patch %s does not exist\n" \
> + "$(print_patch $patch)" >&2
> + return 1
> + fi
> +
> apply_patch $patch "$patch_file"
> status=$?
> trap "" SIGINT
This doesn't apply clealy on top of the repository, please rebase.
> --- a/test/missing.test
> +++ b/test/missing.test
> @@ -5,6 +5,10 @@
> < missing2.diff
>
> $ quilt push -qa
> + > Patch patches/missing1.diff does not exist
> + > Applying patch patches/missing1.diff
> +
> + $ quilt push -qaf
> > Applying patch patches/missing1.diff
> > Patch patches/missing1.diff does not exist; applied empty patch
> > Applying patch patches/missing2.diff
>
--
Jean Delvare
Suse L3
- Re: [Quilt-dev] [patch 1/5] Verbosly fail when trying to push a non existant patch,
Jean Delvare <=