Page 1 of 1

depfinder

Posted: 11. Oct 2022, 19:19
by babam
It would be better to use /var/lib/pkgtools/packages

Code: Select all

--- depfinder-1.4.4/depfinder-search/CWhatProvides.cpp
+++ depfinder-1.4.4-new/depfinder-search/CWhatProvides.cpp
@@ -17,7 +17,7 @@
 	_logfile.open(TMPFILE("/pkglist.log", shellpid).c_str(), std::ios_base::in);
 	while ( !_logfile.eof() ) {
 		getline(_logfile, _inputstr);
-		if ( _inputstr.length() > 0 ) search_package("/var/log/packages/" + _inputstr, file);
+		if ( _inputstr.length() > 0 ) search_package("/var/lib/pkgtools/packages/" + _inputstr, file);
 	}
 	_logfile.close();
 }

Re: depfinder

Posted: 11. Oct 2022, 19:41
by DidierSpaier
Yes but does this change the results?

Code: Select all

didier[~]$ ls -l /var/log/packages
lrwxrwxrwx 1 root root 24 août   1 17:54 /var/log/packages -> ../lib/pkgtools/packages

Re: depfinder

Posted: 11. Oct 2022, 19:49
by babam
DidierSpaier wrote: 11. Oct 2022, 19:41 Yes but does this change the results?
No

Re: depfinder

Posted: 11. Oct 2022, 20:13
by DidierSpaier
Thanks for the heads-up anyway. Maybe Patrick Volkerding will remove the symlink in a future version...

Re: depfinder

Posted: 12. Oct 2022, 10:30
by gapan
Thanks, I've made the change in git.