Date: Thu, 7 Sep 2023 12:17:36 -0400 From: Vlad Markov <dvoich@optonline.net> To: questions@freebsd.org Subject: Re: portmaster and CR Message-ID: <20230907121736.7b1f5448@happy.dwarf7.net> In-Reply-To: <20230906121433.36725b91@happy.dwarf7.net> References: <20230901180918.137baaf3@happy.dwarf7.net> <3645ddcd-ede2-2116-3f68-5d3fcb53a643@pp.dyndns.biz> <20230906121433.36725b91@happy.dwarf7.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 6 Sep 2023 12:14:33 -0400 Vlad Markov <dvoich@optonline.net> wrote: > On Mon, 4 Sep 2023 01:10:30 +0200 > Morgan Wesström <freebsd-database@pp.dyndns.biz> wrote: > > > On 2023-09-02 00:09, Vlad Markov wrote: > > > > > > I use portmaster to update my ports. Usually there are many ports needing updating. Recently, portmaster requires a carriage return after finishing one update before it will resume. > > > > > > I find that annoying. Is there a way to get it to just keep going? I can see stopping on an error but not stopping on success. > > > > This is what I use for that exact purpose: > > > > portmaster -aydbg > > > > Thanks, your post made me check my arguments to portmaster. The only times it requires a carriage return is if I use "-P" or "--packages". > > The debug looks like this: > > + distfiles_checked=: > + [ ! ' KhronosGroup-Vulkan-Loader-v1.3.262_GH0.tar.gz ' '=' ' KhronosGroup-Vulkan-Loader-v1.3.263_GH0.tar.gz ' ] > + pm_wait_di_file_complete > + [ -z '' ] > + head -1 > > I'll look more deeply at it. > -- What goes on is that DI_FILES is the empty string so head is waiting for some input which I give by entering a carriage return. I added a check for the empty string. It works for me. I am not sure what I encountered is a bug or not. 1226 if [ -z "$di_file_complete" ] && [ -n "$DI_FILES" ] && [ `head -1 $D I_FILES` = '############' ]; then -- I dream of a better tomorrow, where chickens can cross the road and not be questioned about their motives.” – Ralph Waldo Emerson
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230907121736.7b1f5448>
