You are not logged in.
@ JohnRaff:
As for question 2:
gamera@bunsenlab2:~$ sudo dpkg-divert --divert /dev/null /usr/share/doc/libwinpr-crypto0.1/README
Adding 'local diversion of /usr/share/doc/libwinpr-crypto0.1/README to /dev/null'
gamera@bunsenlab2:~$
gamera@bunsenlab2:~$ dpkg-divert --list | grep cryptolocal diversion of /usr/share/doc/libwinpr-crypto0.1/README to /dev/null
gamera@bunsenlab2:~$
Hmm it seems to legally work!
So.. I then uninstalled the libwinpr-crypto0.1 package, made sure the /usr/share/doc/libwinpr-crypto0.1 dir. didn't exist, made sure that the diversion still existed then reinstalled:
gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$ dpkg-divert --list | grep crypto
local diversion of /usr/share/doc/libwinpr-crypto0.1/README to /dev/null
gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$ ls
changelog.Debian.gz changelog.gz copyright
gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$
Notice above that the file README isn't located in the .../libwinpr-crypto0.1/ dir. Sent to /dev/null.
Proof in the proverbial pudding:
gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$ dpkg -L libwinpr-crypto0.1
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libwinpr-crypto.so.0.1.0
/usr/share
/usr/share/doc
/usr/share/doc/libwinpr-crypto0.1
/usr/share/doc/libwinpr-crypto0.1/changelog.gz
/usr/share/doc/libwinpr-crypto0.1/changelog.Debian.gz
/usr/share/doc/libwinpr-crypto0.1/README
locally diverted to: /dev/null
/usr/share/doc/libwinpr-crypto0.1/copyright
/usr/lib/x86_64-linux-gnu/libwinpr-crypto.so.0.1
gamera@bunsenlab2:/usr/share/doc/libwinpr-crypto0.1$
Note the diversion to /dev/null
So honestly, I"m not sure where, or what this proves... but it could be helpful?
Last edited by Horizon_Brave (2016-03-26 04:00:14)
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
Also...I have serious issues with the syntax and writing of the dpkg-divert command. From the man pages:
--package package
package is the name of a package whose copy of file will not be diverted. i.e. file will be diverted for all packages except package.
Is this even true? From the way JohnRaff used the --package option it seems to work by using the specified package as the script to provide the diversion commands. (instead of setting it locally on your system)
For example:
dpkg-divert --divert /usr/bin/example.txt.foo --package Horizon_Brave_script --rename /usr/bin/example.txt
If I have it right... this would imply that the file example.foo is the new diverted location and anthing that was to be sent to example.txt will be sent to example.txt.foo AND that the script issuing this dpkg-divert command was the Horizon_Brave_script.
Literally, the script Horizon_Brave_script, is the 'control script' that has the dpkg-divert command. So man page's description about this seems..off. Way off.
The same goes for the rename command, I haven't yet figured out what it's actually doing here... Anyway I don't mean to hi-jack this thread, so I may or mods feel free to move this to it's own thread. I may make a separate dpkg-divert thread later on when I have some things straight. ..
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
@HB it's OK actually. Nothing's "way off", although it's true that man pages aren't always easy to understand.
I'm afraid you'll just have to read it a few more times, while playing with the commands.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Meh...
sudo aptitude purge thunar
works for me. I have never liked thunar.
Offline