pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/39896: 2008Q3 htmllint: Failed downloads. Japanese version?



The following reply was made to PR pkg/39896; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/39896: 2008Q3 htmllint: Failed downloads. Japanese version?
Date: Mon, 17 Nov 2008 20:46:55 +0900

 OK, you have PKG_RESUME_TRANSFERS=YES, doesn't it?
 
 1. fetch htmllint.zip from MASTER_SITES as htmllint.zip.pkgsrc.resume
 2. newer distfile than expected, failed to verify
 3. switch to to the next site, from MASTER_SITE_BACKUP
 4. try to resume fetch using broken htmllint.zip.pkgsrc.resume....
 
 Following patch should fixes this problem, but remain one cloud,
 is there a fetch command, fetch is uncompleted, but exit code is 0?
 
 Index: mk/fetch/fetch
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/fetch/fetch,v
 retrieving revision 1.10
 diff -u -r1.10 fetch
 --- mk/fetch/fetch     15 Sep 2008 21:07:46 -0000      1.10
 +++ mk/fetch/fetch     17 Nov 2008 11:45:24 -0000
 @@ -280,6 +280,7 @@
                if ${TEST} -f $path; then
                        ${CP} -f $path $outputpath
                else
 +                      ${RM} -f $outputpath
                        ${TOUCH} $outputpath
                fi
        fi
 Index: mk/fetch/fetch.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/fetch/fetch.mk,v
 retrieving revision 1.37
 diff -u -r1.37 fetch.mk
 --- mk/fetch/fetch.mk  8 Oct 2008 15:39:07 -0000       1.37
 +++ mk/fetch/fetch.mk  17 Nov 2008 11:45:24 -0000
 @@ -226,6 +226,7 @@
                        FETCH_RESUME_ARGS=${FETCH_RESUME_ARGS:Q}        \
                        FETCH_OUTPUT_ARGS=${FETCH_OUTPUT_ARGS:Q}        \
                        MKDIR=${TOOLS_MKDIR:Q} MV=${TOOLS_MV:Q}         \
 +                      RM=${TOOLS_RM:Q}                                \
                        TEST=${TOOLS_TEST:Q} TOUCH=${TOOLS_TOUCH:Q}     \
                        WC=${TOOLS_WC:Q}                                \
                ${SH} ${PKGSRCDIR}/mk/fetch/fetch
 


Home | Main Index | Thread Index | Old Index