Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198492 - quickpkg should create the PKGDIR directory if needed
Summary: quickpkg should create the PKGDIR directory if needed
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 200044
  Show dependency tree
 
Reported: 2007-11-08 21:40 UTC by Rabbe Fogelholm
Modified: 2007-11-23 03:51 UTC (History)
1 user (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 Rabbe Fogelholm 2007-11-08 21:40:28 UTC
I just noticed that when running a command like `quickpkg bzip2' for the first time you may see the following failure: "No write access to /usr/portage/packages".

The way forward is to create the directory and try again. Although this is not so hard to find out I think the message is slightly misleading: It suggests that the directory exists but is write protected or owned by the wrong user or such.

So, my humble suggestion: quickpkg should check for existence of the directory. In case it does not exist, attempt to create it as if using a `mkdir -p' command. If successful, go ahead, else fail with a diagnostic.

However, there may be reasons to preserve the current behaviour (quickpkg fails if the directory has not yet been created) that I am not aware of. In that case at least the diagnostic message could be improved, stating that the directory does not exist. Also then the manpage should perhaps state that the directory must exist before using the quickpkg command.
Comment 1 Zac Medico gentoo-dev 2007-11-23 03:51:28 UTC
This has been released in 2.1.4_rc1.