https://bugzilla.novell.com/show_bug.cgi?id=847794
https://bugzilla.novell.com/show_bug.cgi?id=847794#c4
Michael Andres changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Basesystem |YaST2
AssignedTo|zypp-maintainers@forge.prov |lslezak@suse.com
|o.novell.com |
QAContact|qa-bugs@suse.de |jsrain@suse.com
--- Comment #4 from Michael Andres 2014-01-09 12:38:46 CET ---
@Ladislav: Looks like it happens in yast-pkg-bindings
[Source_Download.cc]
YCPValue PkgFunctions::SourceProvideFileCommon(...)
...
// create the tmpdir in <_download_area>/var/tmp
zypp::filesystem::TmpDir tmpdir(
_download_area / zypp::filesystem::TmpDir::defaultLocation());
The log says:
2014-01-08 06:57:24 <1> linux(2440)
[Pkg] Source_Installation.cc(SourceMoveDownloadArea):286
Moving download area of all sources to /mnt/var/tmp
2014-01-08 06:57:24 <1> linux(2440)
[zypp] MediaHandler.cc(setAttachPrefix):324
Setting user defined attach point prefix: /mnt/var/tmp
I guess 'usually' your _download_area is unset, that's why you append
TmpDir::defaultLocation (/var/tmp) so it fits your needs.
But in case you redirect the download area to a tmp dir (/mnt/var/tmp),
appending TmpDir::defaultLocation is superfluous.
I guess it should be like this:
zypp::filesystem::TmpDir tmpdir(
_download_area ? _download_area
: zypp::filesystem::TmpDir::defaultLocation());
Or initialize '_download_area = zypp::filesystem::TmpDir::defaultLocation()' so
_download_area will always point to a valid tmp dir:
zypp::filesystem::TmpDir tmpdir( _download_area );
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.