Hi,
I'm switching btw the 10.4-transitional and 10.4 tree by setting a
symlink from /sw to the 2 fink directories having the 10.4-
transitional and 10.4 distributions active, respectively. I also
linked the /sw/fink/debs directory btw the 2 directories to avoid
rebuilding debs already built in one tree in the other when they bear
the same version. However, the symlinks created by Fink use /sw/fink/
dists in the target path. Thus if I change the /sw symlink pointing
to the other tree, the target path points to a non-existent deb file.
I modified get_debpath in PgkVersion.pm to replace the generic dists
with the actual distribution. I.e. the deb link does no longer look
like:
libbonobo2_2.10.1-2_darwin-powerpc.deb -> /sw/fink/dists/unstable/
main/binary-darwin-powerpc/gnome/libbonobo2_2.10.1-2_darwin-powerpc.deb
but uses the dists independent path:
libbonobo2_2.10.1-2_darwin-powerpc.deb -> /sw/fink/10.4-transitional/
unstable/main/binary-darwin-powerpc/gnome/libbonobo2_2.10.1-1_darwin-
powerpc.deb
I guess this can be also useful for the normal user, i.e. without a
hacked fink setup, when the switch from the 10.4-transitional to the
10.4 tree takes place. It would allow to retain access to the deb
files built under the old tree.
Here are the modifications I've done to PgkVersion.pm:
--- PkgVersion.pm 2006-02-02 16:30:11.000000000 -0600
+++ PkgVersion.pm.mine 2006-02-02 15:51:28.000000000 -0600
@@ -1274,7 +1274,11 @@
sub get_debpath {
my $self = shift;
- return $self->{_debpath};
+
+ my $path = $self->{_debpath};
+ my $dist = $config->param("Distribution");
+ $path =~ s/\/dists\//\/$dist\//;
+ return $path;
}
sub get_debfile {
I'm using Fink since a few days with this modification and haven't
encountered any problems so far. Let me know if I should commit the
changes.
Cheers,
Remi
--
Intelligence is like a four-wheel drive vehicle: it allows you to get
stuck in much more remote places.
*********************************************************************
Remigius K. Mommsen e-mail: [EMAIL PROTECTED]
University of Manchester URL: http://cern.ch/mommsen
Fermilab, MS 357 voice: ++1 (630) 840-8321
P.O. Box 500 fax: ++1 (630) 840-2649
Batavia, Il 60510, US home: ++1 (630) 236-0932
*********************************************************************
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel