aboutsummaryrefslogtreecommitdiffstats
path: root/park-rpmdrake
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-04 11:16:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-04 11:16:43 +0000
commit1504ce98a1ca6c3d82ff5b5a2e91d4bb79be938e (patch)
tree88b43d32003abfca6623da95fa19af79f0fa6af4 /park-rpmdrake
parent417c8d0e1020ccac04575a1f038a00d7cd196c78 (diff)
downloadrpmdrake-1504ce98a1ca6c3d82ff5b5a2e91d4bb79be938e.tar
rpmdrake-1504ce98a1ca6c3d82ff5b5a2e91d4bb79be938e.tar.gz
rpmdrake-1504ce98a1ca6c3d82ff5b5a2e91d4bb79be938e.tar.bz2
rpmdrake-1504ce98a1ca6c3d82ff5b5a2e91d4bb79be938e.tar.xz
rpmdrake-1504ce98a1ca6c3d82ff5b5a2e91d4bb79be938e.zip
ensure there is the default networks if we don't have any networks
Diffstat (limited to 'park-rpmdrake')
-rwxr-xr-xpark-rpmdrake3
1 files changed, 3 insertions, 0 deletions
diff --git a/park-rpmdrake b/park-rpmdrake
index bd081374..627d2968 100755
--- a/park-rpmdrake
+++ b/park-rpmdrake
@@ -375,6 +375,9 @@ sub group_modify {
$add_host->($network);
}
};
+ if (!@{$group->{networks}}) {
+ $group->{networks} = default_networks();
+ }
populate_networks_with_raw_hosts($group);
$add_network->($_) foreach @{$group->{networks}};