From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aidan Gauland Subject: Re: [Patch] Re: Bug? Inconsistency with org-publish-attachment Date: Thu, 16 Sep 2010 20:33:18 +0000 (UTC) Message-ID: References: <20100915021535.GA19762@dimension8.tehua.net> <87tylrgfin.fsf@gmx.de> <87eicuhbq5.fsf@gmx.de> <20100916031504.GA5117@dimension8.tehua.net> <87d3sdswqe.fsf_-_@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=60280 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwLOA-00087O-AD for emacs-orgmode@gnu.org; Thu, 16 Sep 2010 16:49:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwL9C-00034p-GJ for emacs-orgmode@gnu.org; Thu, 16 Sep 2010 16:33:35 -0400 Received: from lo.gmane.org ([80.91.229.12]:35619) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwL9C-00034e-AM for emacs-orgmode@gnu.org; Thu, 16 Sep 2010 16:33:34 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OwL9A-0005nl-H7 for emacs-orgmode@gnu.org; Thu, 16 Sep 2010 22:33:33 +0200 Received: from 114-134-7-235.rurallink.co.nz ([114.134.7.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Sep 2010 22:33:32 +0200 Received: from aidalgol by 114-134-7-235.rurallink.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Sep 2010 22:33:32 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sebastian Rose gmx.de> writes: > `org-publish-attachment' is wrong or called with wrong arguments. > > This patch fixes it. > > As always, there might be a better way to fix it, > but this way the function `org-publish-attachment' will work regardless > of parameters. Someone will always call this function with the wrong > `PUB-DIR' parameter... > > Aidan, would like to apply the patch and verify it works for you? That fixes the problem, but introduces/reveals another: All symlinks in artsy/photography/images/ are dereferenced and copied to published/artsy/photography/images/, but all regular files in artsy/photography/images/ are copied to published/artsy/photography/images/artsy/photography/images/. So the patch works only if there are only symlinks. (Not sure about only regular files. It may have broken something.) --Aidan