Re: f21 runs dnf check on every shell startup

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

 



Thanks for the hint!

bash -x 
...

++++ complete -D -F _completion_loader
++++ [[ -d /etc/bash_completion.d ]]
++++ [[ -r /etc/bash_completion.d ]]
++++ [[ -x /etc/bash_completion.d ]]
+++++ LC_ALL=C
+++++ command ls /etc/bash_completion.d
+++++ ls /etc/bash_completion.d
++++ for i in '$(LC_ALL=C command ls "$BASH_COMPLETION_COMPAT_DIR")'
++++ i=/etc/bash_completion.d/dnf-completion.bash
++++ [[ dnf-completion.bash != @(@(#*#|*@(~|.@(bak|orig|rej|swp|dpkg*|rpm@(orig|new|save))))|Makefile*|@()) ]]
++++ [[ -f /etc/bash_completion.d/dnf-completion.bash ]]
++++ [[ -r /etc/bash_completion.d/dnf-completion.bash ]]
++++ . /etc/bash_completion.d/dnf-completion.bash
+++++++ dnf help
+++++++ sed -e 's/\(  \)\+.*$//g' -e '/^$/d' -e '/^[A-Z ]/d' -e /:/d
Repository google-chrome is listed more than once in the configuration

And there is the message!

I have seen sometimes long hangs trying to ssh into the machine.  After printing 'last login...' and before getting this message and a bash prompt.  I'm just guessing this is what is causing sometimes long delay.

On Tue, Dec 9, 2014 at 10:11 AM, Igor Gnatenko <i.gnatenko.brain@xxxxxxxxx> wrote:
If we're talking about bash startup, so there nothing what takes long time.

bash should load functions from dnf-completion.bash and should not
execute something.

I think would be good to get logs from command `bash -x`

On Tue, Dec 9, 2014 at 6:06 PM, Jan Zelený <jzeleny@xxxxxxxxxx> wrote:
> On 9. 12. 2014 at 18:52:29, Igor Gnatenko wrote:
>> On Tue, Dec 9, 2014 at 5:34 PM, Neal Becker <ndbecker2@xxxxxxxxx> wrote:
>> > I'm sorry, I'm confused.
>> > The problem is that it seems with every shell startup, some dnf command is
>> > run (perhaps check-update?).  I did not run the command.  I don't want it
>> > to run - sometimes it slows shell startup.
>>
>> You mean GNOME shell startup? or what startup?
>
> IIUIC that would be bash startup. Is is possible that the bash completion
> script does some preloading at that time?
>
> Jan



--
-Igor Gnatenko



--
Those who don't understand recursion are doomed to repeat it
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux