diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-12-23 22:26:04 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-12-23 23:11:09 +0000 |
commit | 4db90ef93a4afc72e7c5c07eea956c36178e3d4e (patch) | |
tree | 3baef3f41f4f24a4db4bd639480b72f889f4c1d4 | |
parent | 7f546be81452f4ebacce198927d0dd8dc6e6e0d9 (diff) | |
download | rpmtools-4db90ef93a4afc72e7c5c07eea956c36178e3d4e.tar rpmtools-4db90ef93a4afc72e7c5c07eea956c36178e3d4e.tar.gz rpmtools-4db90ef93a4afc72e7c5c07eea956c36178e3d4e.tar.bz2 rpmtools-4db90ef93a4afc72e7c5c07eea956c36178e3d4e.tar.xz rpmtools-4db90ef93a4afc72e7c5c07eea956c36178e3d4e.zip |
gendistrib: fix bug when media.cfg links directly to main hdlist
In the media.cfg file you can specify a relative path in hdlist=
and thus link directly to the master hdlist file. But if you do
this, gendistrib deletes the master file and replaces it with a
soft link which links back to itself. This patch fixes that.
-rwxr-xr-x | gendistrib | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -220,7 +220,7 @@ sub hdlist_alternate_location { if (! -e $main) { print STDERR "missing $main, not creating alternate location $alternate\n"; - } elsif (-l $alternate && inode($alternate) == inode($main)) { + } elsif (inode($alternate) == inode($main)) { # ok } else { if (-l $alternate) { |