Mageia Bugzilla – Attachment 9849 Details for
Bug 22261
Bugs in gendistrib when hdlists, etc. are not stored in the master media_info directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Fix for first bug
0001-gendistrib-fix-bug-when-media.cfg-links-directly-to-.patch (text/plain), 936 bytes, created by
Martin Whitaker
on 2017-12-24 00:20:18 CET
(
hide
)
Description:
Fix for first bug
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-12-24 00:20:18 CET
Size:
936 bytes
patch
obsolete
>From 4db90ef93a4afc72e7c5c07eea956c36178e3d4e Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Sat, 23 Dec 2017 22:26:04 +0000 >Subject: [PATCH 1/2] 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. > >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) { >-- >2.13.6 >
From 4db90ef93a4afc72e7c5c07eea956c36178e3d4e Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Sat, 23 Dec 2017 22:26:04 +0000 Subject: [PATCH 1/2] 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. 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) { -- 2.13.6
View Attachment As Raw
Actions:
View
Attachments on
bug 22261
: 9849 |
9850