on 16/05/2011 10:02 Andriy Gapon said the following:
> The following patch simply tries to remove the stale distfile before calling
> fetch.  Maybe there is a smarter way about this, like e.g. passing some option
> to fetch.

Sorry, that patch had incorrect syntax, here is a better patch:

--- /usr/ports/Mk/bsd.port.mk.orig      2011-05-16 09:53:49.461968872 +0300
+++ /usr/ports/Mk/bsd.port.mk   2011-05-16 10:08:30.070979546 +0300
@@ -3562,6 +3562,9 @@
                           ${ECHO_MSG} "=> ${DISTDIR} is not writable by you; 
cannot fetch."; \
                           exit 1; \
                        fi; \
+                       if [ "$$force_fetch" = "true" ]; then \
+                               rm -f $$file $$filebasename; \
+                       fi; \
                        if [ ! -z "$$select" ] ; then \
                                __MASTER_SITES_TMP= ; \
                                for group in $$select; do \


-- 
Andriy Gapon
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to