View | Details | Raw Unified | Return to bug 34314
Collapse All | Expand All

(-)a/remove-old-kernels (-1 / +9 lines)
Lines 83-88 do Link Here
83
	if [ "$current_kernel_flavour" = "$kernel_flavour" ] ; then
83
	if [ "$current_kernel_flavour" = "$kernel_flavour" ] ; then
84
		comparever="$(rpmevrcmp "$current_kernel_package" "$kernel")"
84
		comparever="$(rpmevrcmp "$current_kernel_package" "$kernel")"
85
		[ "$comparever" -lt 0 ] && continue
85
		[ "$comparever" -lt 0 ] && continue
86
	else
87
		# check if kernel is latest with given flavour
88
		latest=1
89
		for kernel2 in $old_kernels
90
		do
91
			comparever="$(rpmevrcmp "$kernel" "$kernel2")"
92
			[ "$comparever" -lt 0 ] && latest=0
93
		done
94
		[ "$latest" -eq 1 ] && continue
86
	fi
95
	fi
87
	echo "  $kernel"
96
	echo "  $kernel"
88
	apt_args_list="$apt_args_list $(rpm -q --queryformat '%{NAME}=%{EPOCH}:%{VERSION}-%{RELEASE}\n' $kernel \
97
	apt_args_list="$apt_args_list $(rpm -q --queryformat '%{NAME}=%{EPOCH}:%{VERSION}-%{RELEASE}\n' $kernel \
89
- 

Return to bug 34314