aboutsummaryrefslogtreecommitdiffstats
path: root/gendistrib
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-23 22:26:04 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-23 23:11:09 +0000
commit4db90ef93a4afc72e7c5c07eea956c36178e3d4e (patch)
tree3baef3f41f4f24a4db4bd639480b72f889f4c1d4 /gendistrib
parent7f546be81452f4ebacce198927d0dd8dc6e6e0d9 (diff)
downloadrpmtools-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.
Diffstat (limited to 'gendistrib')
-rwxr-xr-xgendistrib2
1 files changed, 1 insertions, 1 deletions
diff --git a/gendistrib b/gendistrib
index 6a2094c..5baf66b 100755
--- a/gendistrib
+++ b/gendistrib
@@ -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) {