Skip to content

Commit

Permalink
Document /etc/portage/repo.postsync.d/10-squashmount-gentoo better
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Aug 29, 2016
1 parent 9b81ef5 commit 949773e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# ChangeLog for squashmount

*squashmount-15.3.2
Martin Väth <martin at mvath.de>:
- Document /etc/portage/repo.postsync.d/10-squashmount-gentoo better

*squashmount-15.3.1
Martin Väth <martin at mvath.de>:
- Improve squashdelta postsyncd hook
- Use the earlier name 10-squashmount-gentoo instead of 50-...
- More verbose example for mounting of the gentoo repository
- Fix typos in manpage

Expand Down
6 changes: 3 additions & 3 deletions bin/squashmount
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env perl

require 5.022;
package Squashmount v15.3.1;
package Squashmount v15.3.2;

use strict;
use warnings;
Expand Down Expand Up @@ -1027,9 +1027,9 @@ see the remarks at the end of this manpage.)

=item # sync-type (like rsync, webrsync or also git).

=item TAG => 'portage', # Do not use TAG => 'gentoo' here if you use
=item TAG => 'portage', # TAG => 'gentoo' should be reserved for

=item # /etc/portage/repo.postsync.d/50-squashmount-gentoo
=item # /etc/portage/repo.postsync.d/10-squashmount-gentoo

=item DIR => '/usr/portage,

Expand Down
2 changes: 1 addition & 1 deletion etc/portage/repo.postsync.d/10-squashmount-gentoo
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository_name=$1
sync_uri=$2
repository_path=$3

# Run only if sync_uri contains "/squash"
# Run only if the configured sync-uri contains the string "/squash"
case $sync_uri in
*/squash*)
false;;
Expand Down
4 changes: 3 additions & 1 deletion etc/squashmount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@
# We will also have to hook into portage's sync mechanism to remount
# after syncing:
# The file etc/portage/repo.postsync.d/50-squashmount-gentoo is such a
# hook (which requires that this mount-point be called "gentoo").
# hook (which requires that this mount-point as well as the repository
# be called "gentoo", and that the sync-uri contains the string
# "/squash").
added_hash($defaults, $non_binary, {
TAG => 'gentoo',
DIR => '/srv/repo-gentoo',
Expand Down

0 comments on commit 949773e

Please sign in to comment.