From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 11 Mar 2007 18:07:43 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20070311150743.GD30166@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20070311143223.F2B9F3E4022@ssh.git.local.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JcvBIhDvR6w3jUPA" Content-Disposition: inline In-Reply-To: <20070311143223.F2B9F3E4022@ssh.git.local.altlinux.org> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] [git update] packages/alterator-ovz: heads/master X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 15:07:44 -0000 Archived-At: List-Archive: List-Post: --JcvBIhDvR6w3jUPA Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 11, 2007 at 05:32:21PM +0300, Konstantin A. Lepikhov wrote: > Update of /people/lakostis/packages/alterator-ovz.git >=20 > Changes statistics since `a96538d610d45f2f6b1cae976a197fd1e49e68b6' follo= ws: > alterator-ovz/backend3/ovz-ve | 11 +++++++++-- > 1 files changed, 9 insertions(+), 2 deletions(-) >=20 > Changelog since `a96538d610d45f2f6b1cae976a197fd1e49e68b6' follows: > commit a2d633bece69be29cdd27646f52c227488c3b578 > Author: Konstantin A. Lepikhov > Date: Sun Mar 11 16:56:44 2007 +0300 >=20 > - fix case where ve name is missing. >=20 [...] > @@ -20,7 +20,13 @@ list_ve() > =20 > get_veid() > { > - vzlist -aHoname,veid|tr -s ' ' '\t'| grep "^$1[[:space:]]"| cut -f2 > + case "$1" in > + [0-9]*) echo "$1" > + ;; > + *) > + vzlist -aHoname,veid|tr -s ' ' '\t'| grep "^$1[[:space:]]"| cut -f2 > + ;; > + esac > } > =20 > get_ve_status() =F0=D2=CF=D7=C5=D2=CB=C1 =CE=C1 =DE=C9=D3=CC=C5=CE=CE=CF=C5 =DA=CE=C1=DE=C5= =CE=C9=C5 =D7=C9=C4=C1 [0-9]* =CE=C5 =CF=DE=C5=CE=D8 =C8=CF=D2=CF=DB=C1 =D4= =C5=CD, =DE=D4=CF 3foo =D0=CF=C4=C8=CF=C4=C9=D4 =D0=CF=C4 =DC=D4=D5 =D0=D2=CF=D7=C5=D2=CB=D5,= =CE=CF =D0=D2=C9 =DC=D4=CF=CD =CE=C5 =D1=D7=CC=D1=C5=D4=D3=D1 =DE=C9=D3=CC= =CF=CD. =F7 /usr/bin/hsh-sh-functions =C5=D3=D4=D8 =D3=D0=C5=C3=C9=C1=CC=D8=CE=C1= =D1 =C6=D5=CE=CB=C3=C9=D1, =C9=D3=D0=CF=CC=D8=DA=D5=C5=CD=C1=D1 =C4=CC=D1 =D0=D2=CF=D7=C5=D2=CB=C9 =DE=C9=D3=CC=C5=CE=CE=CF=C7=CF =DA=CE=C1= =DE=C5=CE=C9=D1 =CB=CC=C0=DE=C1: opt_check_number() { [ -z "$(printf %s "$2" |tr -d '[0-9]')" ] && [ "$2" -gt 0 ] 2>/dev/null || Fatal "$1: $2: invalid number." printf %s "$2" } =F0=CF =C1=CE=C1=CC=CF=C7=C9=C9 get_veid =CD=CF=D6=CE=CF =D0=C5=D2=C5=D0=C9= =D3=C1=D4=D8 =D4=C1=CB: get_veid() { local name=3D"$1"; shift [ -n "$name" ] || return 1 if [ -z "$(printf %s "$name" |tr -d '[0-9]')" ] && [ "$name" -gt 0 ] 2>/dev/null; then echo "$name" else vzlist -aH -oveid,name | awk "-vname=3D$name" '$2=3D=3Dname{print $1;exit}' fi } --=20 ldv --JcvBIhDvR6w3jUPA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFF9Bs/fKvmrJ41Nh4RAtLhAJ93pPab+ixOvwNV4Tq4P17yWiCNawCeKo0G 7K7YY3XaEiodjH33p1XRjwQ= =K71C -----END PGP SIGNATURE----- --JcvBIhDvR6w3jUPA--