1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-09 09:54:21 +00:00
fedora-kickstarts/snippets/repository-debuginfo.ks
2008-07-25 11:11:26 +02:00

26 lines
373 B
Plaintext

# %post modifications to enable debuginfo repository
awk '
BEGIN {
debuginfo = 0
}
/^\[.*\]/ {
if (/debuginfo/) {
debuginfo = 1
} else {
debuginfo = 0
}
print
next
}
/enabled=0/ && debuginfo {
print "enabled=1"
next
}
{
print
next
}' < /etc/yum.repos.d/fedora.repo > /etc/yum.repos.d/fedora.repo.tmp
mv /etc/yum.repos.d/fedora.repo{.tmp,}