search for: user_arch

Displaying 9 results from an estimated 9 matches for "user_arch".

Did you mean: user_acct
2010 May 07
1
[PATCH] List all missing dependencies at once
...return undef; } - return undef if ($self->_newer_installed($app)); + my @missing; + if (!$self->{g}->exists($self->_transfer_path($app))) { + push(@missing, $app); + } else { + return undef if ($self->_newer_installed($app)); + } my $user_arch = $kernel_arch eq 'i686' ? 'i386' : $kernel_arch; + my @deps = $self->_get_deppaths(\@missing, $user_arch, @$depnames); + + # We can't proceed if there are any files missing + _die_missing(@missing) if (@missing > 0); + # Install any required kernel depende...
2010 May 14
1
[PATCH] Use RHN to retrieve replacement packages
...+ # version-release of the new kernel package + $version = ($self->{g}->command_lines( + ['rpm', '-qf', '--qf=%{VERSION}-%{RELEASE}', $k_new[0]]))[0]; } else { - return undef if ($self->_newer_installed($app)); - } - my $user_arch = $kernel_arch eq 'i686' ? 'i386' : $kernel_arch; + my ($app, $depnames); + eval { + my $desc = $self->{desc}; - my @deps = $self->_get_deppaths(\@missing, $user_arch, @$depnames); + ($app, $depnames) = + $self->{confi...
2010 Apr 23
2
[PATCH] Config: Change config to lookup dependencies by name
...undef if ($self->_newer_installed($app)); - my @install; - # Install any kernel dependencies which aren't already installed - foreach my $dep (@$deps) { - push(@install, $dep) unless($self->_is_installed($dep)); - } - $self->_install_rpms(1, @install); + my $user_arch = $kernel_arch eq 'i686' ? 'i386' : $kernel_arch; + + # Install any required kernel dependencies + $self->_install_rpms(1, $self->_get_deppaths($user_arch, @$depnames)); # Inspect the rpm to work out what kernel version it contains my $version; @@ -621,22 +62...
2010 Apr 08
1
[PATCH] Move all interaction with the config file into Sys::VirtV2V::Config
...pp))) if(!defined($version)); - $self->_install_rpms(0, ($path)); + $self->_install_rpms(0, ($app)); # Make augeas reload so it'll find the new kernel $g->aug_load(); @@ -611,17 +620,26 @@ sub add_application my $self = shift; my $label = shift; - my $user_arch = $self->{desc}->{arch}; + my $desc = $self->{desc}; + my $user_arch = $desc->{arch}; + + my $config = $self->{config}; + unless (defined($config)) { + my $search = Sys::VirtV2V::Config::get_app_search($desc, $label, +...
2010 May 04
2
[PATCH 1/2] Config: NFC: always create and pass round a Config object
...($app, $depnames) = - $config->match_app($desc, $kernel_pkg, $kernel_arch); + $self->{config}->match_app($desc, $kernel_pkg, $kernel_arch); }; # Return undef if we didn't find a kernel if ($@) { @@ -619,13 +610,6 @@ sub add_application my $user_arch = $desc->{arch}; my $config = $self->{config}; - unless (defined($config)) { - my $search = Sys::VirtV2V::Config::get_app_search($desc, $label, - $user_arch); - die(user_message(__x("No config specified. No...
2010 Feb 09
5
[PATCH 1/6] Convert config file to XML, and translate networks/bridge for all connections
Previously, only the LibVirtXML connection translated network and bridge names in imported metadata. This change moves this functionality in Converter, making it available to LibVirt connections as well. At the same time, the format of the config file is switched to XML. The primary driver for this is that the allowable syntax of a foreign network/bridge name is not known. Rather than create a
2010 May 19
8
RHN support and capabilities
This patch series includes a repost of Milan's unmodified RHN support patch because I haven't pushed it yet. On top of that patch, it includes the capabilities patch in as many bits as I could make it into. The big one is 7/8. I've tested all of the following guests both with and without RHN registration: Xen RHEL 54 PV Xen RHEL 51 PV Xen RHEL 48 PV ESX RHEL 54 FV
2010 Feb 12
11
[PATCH 1/9] Convert config file to XML, and translate networks/bridge for all connections
Previously, only the LibVirtXML connection translated network and bridge names in imported metadata. This change moves this functionality in Converter, making it available to LibVirt connections as well. At the same time, the format of the config file is switched to XML. The primary driver for this is that the allowable syntax of a foreign network/bridge name is not known. Rather than create a
2009 Jul 24
2
[PATCH] Initial drop of virt-v2v
...kernel + my $rpm = $g->command(["rpm", "-qf", "/boot/vmlinuz-".$version]); + + $g->command(["rpm", "-e", $rpm]); + }; + + die($@) if($@); +} + +sub add_application +{ + my $self = shift; + my $label = shift; + my $user_arch = "i386"; # XXX: Need to get this from inspection! + + my $filename = $self->match_file($label, $user_arch); + $self->install_rpm($filename); +} + +sub remove_application +{ + my $self = shift; + my $name = shift; + + my $g = $self->{g}; + eval { + $g-&gt...