Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659202 - Warning "!!! You have no world file" occurs on empty world files
Summary: Warning "!!! You have no world file" occurs on empty world files
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal enhancement with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 144480
  Show dependency tree
 
Reported: 2018-06-26 04:28 UTC by Manuel Schmitt
Modified: 2018-09-08 22:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Schmitt 2018-06-26 04:28:58 UTC
When doing an 

 emerge --depclean

it throws

  !!! You have no world file

if a world file is empty but existing.


I suggest to change the behaviour to the following:

1. If the world file is really missing, show the error as before
2. If the world file exists but is empty, do not show the error, maybe another informational warning


Background for my suggestion: Using empty world file is not uncommon when using profiles derived from Gentoo's profile while adding all relevant packages to a derived @system set (e.g. for keeping multiple servers in sync with custom profiles).