From 308acd2839766b8da68ff4b4e68e660335bea15f Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 30 Oct 2012 09:14:44 +0000 Subject: [PATCH] Adding packagenames without directory to KIT_RMPKGS.otherpkgs.pkglist so otherpkg script could remove them git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14155 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kit.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index 88a84e623..c795670fb 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -592,7 +592,7 @@ sub assign_to_osimage chomp $line; my $matched = 0; foreach my $kitpkgdep ( @kitpkgdeps ) { - if ( $line =~ /^-$kitreponame\/$kitpkgdep$/ ) { + if ( $line =~ /^-$kitpkgdep$/ ) { $matched = 1; $changed = 1; last; @@ -2037,14 +2037,14 @@ sub rmkitcomp my $matched = 0; foreach my $line ( @lines ) { chomp $line; - if ( $line =~ /^-$kitreponame\/$kitpkgdep$/ ) { + if ( $line =~ /^-$kitpkgdep$/ ) { $matched = 1; last; } } unless ( $matched ) { - push @l, "-$kitreponame/$kitpkgdep\n"; + push @l, "-$kitpkgdep\n"; $update = 1; }