All of lore.kernel.org
 help / color / mirror / Atom feed
* Packaged Staging Problems
@ 2008-06-14 22:18 Graeme Gregory
  2008-06-15  7:44 ` Koen Kooi
  2008-06-15 10:02 ` Koen Kooi
  0 siblings, 2 replies; 3+ messages in thread
From: Graeme Gregory @ 2008-06-14 22:18 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

I get the problem in packaged staging that it repeatedly issues the
error.

NOTE: Checking if staging package installed
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
sed: couldn't flush stdout: Broken pipe
NOTE: No. Manually removing any installed files

I suspect the attached patch is the fix for this. But this is scary core
stuff so I thought I would send it for review.

Graeme


[-- Attachment #2: stage-manager.patch --]
[-- Type: text/x-diff, Size: 1304 bytes --]

#
# old_revision [6ff295c2536e27dfcb4ab565a0592a3dc502d6aa]
#
# patch "packages/stage-manager/files/stage-manager-ipkg"
#  from [7593166519513f8e516b14d394e2d3576854f946]
#    to [039533c80c39c7ad92cf0d47b2a4df052ab060fa]
#
============================================================
--- packages/stage-manager/files/stage-manager-ipkg	7593166519513f8e516b14d394e2d3576854f946
+++ packages/stage-manager/files/stage-manager-ipkg	039533c80c39c7ad92cf0d47b2a4df052ab060fa
@@ -33,7 +33,7 @@ ipkg_src_byname() {
 
 ipkg_src_byname() {
 	local src="$1"
-	ipkg_srcs $src | head -1
+	ipkg_srcs $src | head -n1
 }
 
 ipkg_dests() {
@@ -58,16 +58,16 @@ ipkg_dest_default() {
 }
 
 ipkg_dest_default() {
-	ipkg_dests_all | head -1
+	ipkg_dests_all | head -n1
 }
 
 ipkg_dest_default_name() {
-	ipkg_dest_names | head -1
+	ipkg_dest_names | head -n1
 }
 
 ipkg_dest_byname() {
 	local dest="$1"
-	ipkg_dests $dest | head -1
+	ipkg_dests $dest | head -n1
 }
 
 ipkg_option() {
@@ -975,7 +975,7 @@ ipkg_upgrade_pkg() {
 
 ipkg_upgrade_pkg() {
 	local pkg="$1"
-	local avail_ver=`ipkg_info $pkg Version | ipkg_extract_value | head -1`
+	local avail_ver=`ipkg_info $pkg Version | ipkg_extract_value | head -n1`
 
 	is_installed=
 	for dest_name in `ipkg_dest_names`; do

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-15 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-14 22:18 Packaged Staging Problems Graeme Gregory
2008-06-15  7:44 ` Koen Kooi
2008-06-15 10:02 ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.