$package_format = "rpm";
$package_management = "yum";
}
+ elsif ($distro eq "pardus") {
+ $package_format = "pisi";
+ $package_management = "pisi";
+ }
elsif ($distro =~ /redhat/ || $distro =~ /rhel/) {
if ($major_version >= 5) {
$package_format = "rpm";
if (parse_major_minor (g, fs) == -1)
return -1;
}
+ else if (guestfs_exists (g, "/etc/pardus-release") > 0) {
+ fs->distro = OS_DISTRO_PARDUS;
+
+ if (parse_release_file (g, fs, "/etc/pardus-release") == -1)
+ return -1;
+
+ if (parse_major_minor (g, fs) == -1)
+ return -1;
+ }
/* Determine the architecture. */
const char *binaries[] =
switch (fs->distro) {
case OS_DISTRO_DEBIAN: ret = safe_strdup (g, "debian"); break;
case OS_DISTRO_FEDORA: ret = safe_strdup (g, "fedora"); break;
+ case OS_DISTRO_PARDUS: ret = safe_strdup (g, "pardus"); break;
case OS_DISTRO_REDHAT_BASED: ret = safe_strdup (g, "redhat-based"); break;
case OS_DISTRO_RHEL: ret = safe_strdup (g, "rhel"); break;
case OS_DISTRO_WINDOWS: ret = safe_strdup (g, "windows"); break;