View previous topic :: View next topic |
Author |
Message |
blixel Guru
Joined: 19 Jul 2004 Posts: 403 Location: Central, Florida
|
Posted: Mon Mar 28, 2005 10:13 pm Post subject: emerge exlcude question |
|
|
I have "emerge sync" setup to exclude a lot of stuff I don't care about such as KDE/QT. Everything is working except I can't figure out how to exclude a directory while still including one or two things within that directory. For example, I want to exclude app-pda, but I want to include app-pda/gtkpod.
My /etc/portage/rsync_excludes rule looks like this:
Code: | app-pda
+app-pda/gtkpod/ |
That doesn't work. I'm hoping someone can help me out here. |
|
Back to top |
|
|
shadow255 Guru
Joined: 04 Apr 2003 Posts: 412
|
Posted: Mon Mar 28, 2005 10:41 pm Post subject: Re: emerge exlcude question |
|
|
blixel wrote: | I have "emerge sync" setup to exclude a lot of stuff I don't care about such as KDE/QT. Everything is working except I can't figure out how to exclude a directory while still including one or two things within that directory. For example, I want to exclude app-pda, but I want to include app-pda/gtkpod.
My /etc/portage/rsync_excludes rule looks like this:
Code: | app-pda
+app-pda/gtkpod/ |
That doesn't work. I'm hoping someone can help me out here. |
You need to put your inclusion rule ahead of the exclusion rule for the directory. From the manpage for rsync:
man rsync wrote: | The first matching pattern is acted on. If it is an exclude pattern, then that file is skipped. If it is an include pattern then that filename is not skipped. |
So app-pda/gtkpod/ matched the exclude rule because it is ahead of the include rule; you've told it, effectively, not to include anything from app-pda, period. Move that include rule above and you should be good to go. This means that for any directory you want to exclude most files, but not all, you should make the exclude rule for that directory always after the explicit includes you want. _________________ Vogon poetry is of course the third worst in the Universe. -- Douglas Adams, The Hitchhiker's Guide to the Galaxy |
|
Back to top |
|
|
blixel Guru
Joined: 19 Jul 2004 Posts: 403 Location: Central, Florida
|
Posted: Mon Mar 28, 2005 11:51 pm Post subject: Re: emerge exlcude question |
|
|
shadow255 wrote: | You need to put your inclusion rule ahead of the exclusion rule for the directory. From the manpage for rsync:
man rsync wrote: | The first matching pattern is acted on. If it is an exclude pattern, then that file is skipped. If it is an include pattern then that filename is not skipped. |
So app-pda/gtkpod/ matched the exclude rule because it is ahead of the include rule; you've told it, effectively, not to include anything from app-pda, period. Move that include rule above and you should be good to go. This means that for any directory you want to exclude most files, but not all, you should make the exclude rule for that directory always after the explicit includes you want. |
Still not working ... a side question comes up though. Where is the timestamp stored for an "emerge sync". I'm trying to test this by syncing my laptop against my Desktop so I'm not a nusance to the mirrors. But once I've synced my laptop to my Desktop, I can't sync again until I resync my Desktop. I would like to clear the timestamp on the laptop so it will resync so I can see if my /etc/portage/rsync_excludes edits are making a difference. |
|
Back to top |
|
|
shadow255 Guru
Joined: 04 Apr 2003 Posts: 412
|
Posted: Tue Mar 29, 2005 12:35 am Post subject: Re: emerge exlcude question |
|
|
blixel wrote: | shadow255 wrote: | You need to put your inclusion rule ahead of the exclusion rule for the directory. From the manpage for rsync:
man rsync wrote: | The first matching pattern is acted on. If it is an exclude pattern, then that file is skipped. If it is an include pattern then that filename is not skipped. |
So app-pda/gtkpod/ matched the exclude rule because it is ahead of the include rule; you've told it, effectively, not to include anything from app-pda, period. Move that include rule above and you should be good to go. This means that for any directory you want to exclude most files, but not all, you should make the exclude rule for that directory always after the explicit includes you want. |
Still not working ... a side question comes up though. Where is the timestamp stored for an "emerge sync". I'm trying to test this by syncing my laptop against my Desktop so I'm not a nusance to the mirrors. But once I've synced my laptop to my Desktop, I can't sync again until I resync my Desktop. I would like to clear the timestamp on the laptop so it will resync so I can see if my /etc/portage/rsync_excludes edits are making a difference. |
Well... you can remove the following files:
Code: | /var/cache/edb/dep/timestamp.chk
/usr/portage/metadata/dtd/timestamp.chk
/usr/portage/metadata/glsa/timestamp.chk
/usr/portage/metadata/timestamp.chk
/usr/portage/metadata/timestamp.x |
This should make your next attempt with emerge --sync carry out the operation, but I don't know whether it will show you what you want. For me, the sync operation simply brought those files back, but I'm not trying to use exclude patterns either.
Edit: Just to make sure you don't do something bad, please understand that I'm recommending to remove those files on the laptop, not the desktop system! _________________ Vogon poetry is of course the third worst in the Universe. -- Douglas Adams, The Hitchhiker's Guide to the Galaxy |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|