Re: apt-move problem

2000-09-10 Thread Tom Lees
On Sat, Sep 09, 2000 at 03:00:56PM +1100, Brian May wrote:
> > "Paul" == Paul Slootman <[EMAIL PROTECTED]> writes:
> 
> Paul> Please check the BTS for apt-move, this is discussed
> Paul> externsively.  Apparently it's a (for me non-obvious) bug in
> Paul> bash.
> 
> Why not change the ( and ) to { and } respectively?
> 
> At least this way, it will work with potato...
> 
> ...and as far as I can tell it is a bit inconsistent anyway - some
> functions are defined with ( and ), while others are defined with {
> and }.

You can change it to { ( and )  }; this will work with exactly the
same functionality (I think; I tested against zsh which executes functions
with ( and ) properly).

> ...or does this have a different meaning?

AFAIK it causes ther function to execute in a subshell (or at least variables
are all local etc.)

-- 
Tom Lees <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-09 Thread Brian May
> "Paul" == Paul Slootman <[EMAIL PROTECTED]> writes:

Paul> Please check the BTS for apt-move, this is discussed
Paul> externsively.  Apparently it's a (for me non-obvious) bug in
Paul> bash.

Why not change the ( and ) to { and } respectively?

At least this way, it will work with potato...

...and as far as I can tell it is a bit inconsistent anyway - some
functions are defined with ( and ), while others are defined with {
and }.

...or does this have a different meaning?

This isn't meant to be a flame in any way, I am just curious...

PS. I am using apt-move 4.1.9.
-- 
Brian May <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-08 Thread Peter S Galbraith

Herbert Xu wrote:

> Peter S Galbraith <[EMAIL PROTECTED]> wrote:
> 
> > My current problem with apt-move is that it wants to delete every
> > single deb file I have (instead of only those that have never
> > versions on hand).  Also, it makes completely empty Packages.gz
> 
> How about a bug report then? 

I was trying to sort it all out, and was about to send one in.

>  You did run apt-move fsck when you first
> upgraded didn't you?

Actually, this was in a new chroot woody, but using a moved-in
mirror.  But running `apt-move fsck` actually fixes my problem!

Thanks (and sorry about bad press in -devel),
Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-08 Thread Andreas Tille
On Thu, 7 Sep 2000, Arthur Korn wrote:

> That was ~250M before ... oops. Time to use http and squid
May be you are more lucky than me with http and squid.
It tokk me several month to find out, why apt-get  has problems
with MD5 checksums on all my packages.  Yesterday I found out
that I have to use ftp (!!) and not http with squid.
I really don't know the reason and I would like to hear other
experiences.  At least I have now a working apt-get again (formerly
I was forced to `dpkg -i` all my packages in /var/cache/apt/archives/partial).

If there is any interest I could post my current working solution
and the one which fails.

Kind regards

 Andreas.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



OT: Re: apt-move problem

2000-09-08 Thread Michael Beattie
On Fri, Sep 08, 2000 at 02:04:29PM +1100, Herbert Xu wrote:
> 
> > my apologies.. I was under the impression that the new method used dpkg -I
> > magic.
> 
> dpkg-scanpackages actually calls dpkg-deb -I :)

bah.. the bug was said to be in dpkg-scanpackages

-- 

   Michael Beattie ([EMAIL PROTECTED])

 -
  for p in `SELECT people FROM #[sekrit] WHERE personality
   CONTAINS gentle`; do greet  done
 -
Debian GNU/Linux  Ooohh You are missing out!



pgp6Ais0O3YNk.pgp
Description: PGP signature


Re: apt-move problem

2000-09-08 Thread Herbert Xu
Michael Beattie <[EMAIL PROTECTED]> wrote:

> On Fri, Sep 08, 2000 at 08:24:09AM +1100, Herbert Xu wrote:
>> This occurs when apt-move first moves the packages in, which is why you m=
> ust
>> never move packages in by hand (at least not without doing an fsck later).

> my apologies.. I was under the impression that the new method used dpkg -I
> magic.

dpkg-scanpackages actually calls dpkg-deb -I :)
-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-08 Thread Michael Beattie
On Fri, Sep 08, 2000 at 08:24:09AM +1100, Herbert Xu wrote:
> 
> > apt-move does not use dpkg-scanpackages (it used to, but not any more.)
> 
> Actually apt-move does use dpkg-scanpackages (and dpkg-scansources), but
> it caches their results so they're never run twice on the same package.
> 
> This occurs when apt-move first moves the packages in, which is why you must
> never move packages in by hand (at least not without doing an fsck later).

my apologies.. I was under the impression that the new method used dpkg -I
magic.

sorry for confusion.

-- 

   Michael Beattie ([EMAIL PROTECTED])

 -
  "Bother," said Pooh, as he heard, "Will the Defendant please rise."
 -
Debian GNU/Linux  Ooohh You are missing out!



pgpbXIH7vd5cT.pgp
Description: PGP signature


Re: apt-move problem

2000-09-08 Thread Rogerio Brito
On Sep 07 2000, Peter S Galbraith wrote:
> It's a bug in bash.  You may work around it by setting ash as
> your /bin/sh shell instead of bash.

I'm using two boxes here, one with potato and another (my
guinea pig) with woody.

I'm seeing the problem above on the machine with woody (which
I corrected by manually editing the apt-move script).

> My current problem with apt-move is that it wants to delete every
> single deb file I have (instead of only those that have never
> versions on hand).  Also, it makes completely empty Packages.gz
> files for me.  Now that I have made Packages.gz file by hand, I'm
> affraid to use `apt-move packages' and overwrite them to test
> anything.  :-(

And I'm seeing this problem in the potato box. I also noticed
that that if I used apt-get autoclean, it would delete some
packages that apt had just downloaded (from
security.debian.org, perhaps? I can't remember).


[]s, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogerio Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/
 Nectar homepage: http://www.linux.ime.usp.br/~rbrito/nectar/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-08 Thread Herbert Xu
Michael Beattie <[EMAIL PROTECTED]> wrote:

> On Thu, Sep 07, 2000 at 12:20:19PM -0400, Steve Robbins wrote:
>
>> I dunno about the first, but I have seen the second problem.  In my case,
>> it was caused by a bug in dpk-scanpackages (from dpkg-dev); see bug #51479
>> in BTS.

> apt-move does not use dpkg-scanpackages (it used to, but not any more.)

Actually apt-move does use dpkg-scanpackages (and dpkg-scansources), but
it caches their results so they're never run twice on the same package.

This occurs when apt-move first moves the packages in, which is why you must
never move packages in by hand (at least not without doing an fsck later).
-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-08 Thread Herbert Xu
Peter S Galbraith <[EMAIL PROTECTED]> wrote:

> My current problem with apt-move is that it wants to delete every
> single deb file I have (instead of only those that have never
> versions on hand).  Also, it makes completely empty Packages.gz

How about a bug report then? You did run apt-move fsck when you first
upgraded didn't you?
-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-08 Thread Michael Beattie
On Thu, Sep 07, 2000 at 12:20:19PM -0400, Steve Robbins wrote:
> On Thu, 7 Sep 2000, Peter S Galbraith wrote:
> 
> > My current problem with apt-move is that it wants to delete every
> > single deb file I have (instead of only those that have never
> > versions on hand).  Also, it makes completely empty Packages.gz
> > files for me.
> 
> I dunno about the first, but I have seen the second problem.  In my case,
> it was caused by a bug in dpk-scanpackages (from dpkg-dev); see bug #51479
> in BTS.

apt-move does not use dpkg-scanpackages (it used to, but not any more.)

-- 

   Michael Beattie ([EMAIL PROTECTED])

 -
 Documentation - The worst part of programming.
 -
Debian GNU/Linux  Ooohh You are missing out!



pgpevAraql6f3.pgp
Description: PGP signature


Re: apt-move problem

2000-09-07 Thread Arthur Korn
Peter S Galbraith schrieb:
> My current problem with apt-move is that it wants to delete every
> single deb file I have

For my archive it was to late:

19M /home/pub/debian

That was ~250M before ... oops. Time to use http and squid
instead ...

ciao, 2ri
-- 
Note that there are two possible orientations of the log. If the end with the
larger diameter is facing downstream, the log is said to be big-endian;
otherwise, it is little-endian.
-- Philip Willoughby <[EMAIL PROTECTED]> on Segfault.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-07 Thread Steve Robbins
On Thu, 7 Sep 2000, Peter S Galbraith wrote:

> My current problem with apt-move is that it wants to delete every
> single deb file I have (instead of only those that have never
> versions on hand).  Also, it makes completely empty Packages.gz
> files for me.

I dunno about the first, but I have seen the second problem.  In my case,
it was caused by a bug in dpk-scanpackages (from dpkg-dev); see bug #51479
in BTS.

-S




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-07 Thread Peter S Galbraith

Andreas Tille wrote:

> I wanted to give apt-move a try:
> Unfortunately I get only syntax errors:
> 
> ~# apt-move
> /usr/bin/apt-move: line 122: syntax error near unexpected token `('

It's a bug in bash.  You may work around it by setting ash as
your /bin/sh shell instead of bash.

My current problem with apt-move is that it wants to delete every
single deb file I have (instead of only those that have never
versions on hand).  Also, it makes completely empty Packages.gz
files for me.  Now that I have made Packages.gz file by hand, I'm
affraid to use `apt-move packages' and overwrite them to test
anything.  :-(

Peter



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-07 Thread Paul Slootman
On Thu 07 Sep 2000, Mika Fischer wrote:
> On Thu, 07 Sep at 16:59 +0200, Andreas Tille wrote:

> > I wanted to give apt-move a try:
> > 
> > Unfortunately I get only syntax errors:
> > 
> > ~# apt-move
> > /usr/bin/apt-move: line 122: syntax error near unexpected token `('
> >
> > What am I doing wrong?
> 
> I guess nothing. I had the same problem a few weeks ago and "solved" it by
> editing the file manually.
> 
> I don´t know what went wrong in the first place, though. The syntax errors
> were so obvious that it can´t possibly be typos.

Please check the BTS for apt-move, this is discussed externsively.
Apparently it's a (for me non-obvious) bug in bash.


Paul Slootman
-- 
home:   [EMAIL PROTECTED] http://www.wurtel.demon.nl/
work:   [EMAIL PROTECTED]   http://www.murphy.nl/
debian: [EMAIL PROTECTED]  http://www.debian.org/
isdn4linux: [EMAIL PROTECTED]   http://www.isdn4linux.de/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-move problem

2000-09-07 Thread Mika Fischer
On Thu, 07 Sep at 16:59 +0200, Andreas Tille wrote:
> I wanted to give apt-move a try:
> 
> Unfortunately I get only syntax errors:
> 
> ~# apt-move
> /usr/bin/apt-move: line 122: syntax error near unexpected token `('
>
> What am I doing wrong?

I guess nothing. I had the same problem a few weeks ago and "solved" it by
editing the file manually.

I don´t know what went wrong in the first place, though. The syntax errors
were so obvious that it can´t possibly be typos.

Regards,
 Mika


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]