[devscripts] 04/04: uupdate: shell use -a instead

Nicholas Bamber nicholas at periapt.co.uk
Tue Nov 17 11:51:02 UTC 2015


Osamu,

The error I;m getting is actually

uupdate: foo_1.0-1.debian.tar.xz already exists.  Start uupdate with -o 
to overwrite it.^M
./test_uscan_mangle: 328: cd: can't cd to /tmp/tmp.te7zdc0PHP/foo-1.0^M
ASSERT:pristine tarball is not extracted^M
tail: cannot open ‘debian/changelog’ for reading: No such file or 
directory^M
dpkg-parsechangelog: error: tail of debian/changelog gave error exit 
status 1^M
ASSERT:uscan: Version should be 1.0-1 but  expected:<> but was:<1.0-1>^M
ASSERT:file that must be present is excluded in the tarball^M


I'm going to investigate. I will have to look into the background a bit 
so I expect you can beat me to it.



On 16. 11. 15 19:29, Nicholas Bamber wrote:
> On 16. 11. 15 17:28, Osamu Aoki wrote:
>> This is an automated email from the git hooks/post-receive script.
>>
>> osamu pushed a commit to branch master
>> in repository devscripts.
>>
>> commit fa47c538969b56da8ebdd5baae9767d097a10eef
>> Author: Osamu Aoki <osamu at debian.org>
>> Date:   Tue Nov 17 02:25:53 2015 +0900
>>
>>      uupdate: shell use -a instead
>> ---
>>   scripts/uupdate.sh | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/scripts/uupdate.sh b/scripts/uupdate.sh
>> index 319d0be..aa55572 100755
>> --- a/scripts/uupdate.sh
>> +++ b/scripts/uupdate.sh
>> @@ -1063,7 +1063,7 @@ else
>>           COMP=${DEBIANFILE##*.}
>>       NEW_DEBIANFILE="${PACKAGE}_${NEW_VERSION}-$SUFFIX.debian.tar.$COMP"
>>       fi
>> -    if [ $OVERWRITE = 0 and -e ${NEW_DEBIANFILE} ]; then
>> +    if [ $OVERWRITE = 0 -a -e ${NEW_DEBIANFILE} ]; then
>>       echo "$PROGNAME: ${NEW_DEBIANFILE} already exists.  Start
>> $PROGNAME with -o to overwrite it." >&2
>>       exit 1
>>       else
>>
>
> Osamu,
>
> So I am getting FTBS again. I'll try to familiairise myself with this
> script and give you some feedback. In the meantime you might want to see
> if you find bashdb useful. It's a bash debugger and I took it over a
> little while back.
>
> _______________________________________________
> devscripts-devel mailing list
> devscripts-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel
>
>




More information about the devscripts-devel mailing list