public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* Re: installed.db does not reflect the correct filename suffix
       [not found] <2b1a16523f63ed60c93d0b9385979761.squirrel@webmail.xs4all.nl>
@ 2013-10-15  9:36 ` Corinna Vinschen
  2013-10-15 15:53   ` Achim Gratz
  0 siblings, 1 reply; 6+ messages in thread
From: Corinna Vinschen @ 2013-10-15  9:36 UTC (permalink / raw)
  To: cygwin-apps

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

[Redirected to cygwin-apps]

On Sep 15 08:11, Henri wrote:
> Hi,
> 
> After upgrading vim, I noticed that the suffix of the compressed filename
> in /etc/setup/installed.db did not match the one in setup.ini (and the one
> in my private repo).
> 
> /etc/setup/installed.db:
> vim vim-7.3.1314-1.tar.bz2 0 # .bz2
> 
> <root_my_repo>/<mirror>/x86/setup.ini:
> install: x86/release/vim/vim-7.3.1314-1.tar.xz 911140 f8565 ... # .xz
> 
> Q: will installed.db reflect the correct suffix again in the near future?

Ouch, I just had a quick look and in package_db.cc, method
packagedb::flush, the filename in installed.db is constructed by
appending a fixed string ".tar.bz2" to name and version.

I skimmed the definition of the class packageversion, but I don't
see an easy way to extract the correct filename or, FWIW, just
the correct suffix.  Apparently the filename is not stored for
installed files.  I tried to use the getfirstfile method but it
returned an empty string.

Does anybody have an idea how to fix this?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: installed.db does not reflect the correct filename suffix
  2013-10-15  9:36 ` installed.db does not reflect the correct filename suffix Corinna Vinschen
@ 2013-10-15 15:53   ` Achim Gratz
  2013-10-15 16:03     ` Corinna Vinschen
  0 siblings, 1 reply; 6+ messages in thread
From: Achim Gratz @ 2013-10-15 15:53 UTC (permalink / raw)
  To: cygwin-apps

Corinna Vinschen writes:
> Does anybody have an idea how to fix this?

Pragmatically the compression suffix could be dropped (just appending
".tar"), since setup.exe doesn't care what it is anyway.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves

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

* Re: installed.db does not reflect the correct filename suffix
  2013-10-15 15:53   ` Achim Gratz
@ 2013-10-15 16:03     ` Corinna Vinschen
  2013-10-15 20:00       ` Christopher Faylor
  0 siblings, 1 reply; 6+ messages in thread
From: Corinna Vinschen @ 2013-10-15 16:03 UTC (permalink / raw)
  To: cygwin-apps

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

On Oct 15 17:53, Achim Gratz wrote:
> Corinna Vinschen writes:
> > Does anybody have an idea how to fix this?
> 
> Pragmatically the compression suffix could be dropped (just appending
> ".tar"), since setup.exe doesn't care what it is anyway.

I was assuming that some people automatically scan installed.db for some
purposes, and for those people the current state is broken with .tar.xz
archives.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: installed.db does not reflect the correct filename suffix
  2013-10-15 16:03     ` Corinna Vinschen
@ 2013-10-15 20:00       ` Christopher Faylor
  2013-10-15 20:08         ` Christopher Faylor
  2013-10-16  7:26         ` Corinna Vinschen
  0 siblings, 2 replies; 6+ messages in thread
From: Christopher Faylor @ 2013-10-15 20:00 UTC (permalink / raw)
  To: cygwin-apps

On Tue, Oct 15, 2013 at 06:03:16PM +0200, Corinna Vinschen wrote:
>On Oct 15 17:53, Achim Gratz wrote:
>> Corinna Vinschen writes:
>> > Does anybody have an idea how to fix this?
>> 
>> Pragmatically the compression suffix could be dropped (just appending
>> ".tar"), since setup.exe doesn't care what it is anyway.
>
>I was assuming that some people automatically scan installed.db for some
>purposes, and for those people the current state is broken with .tar.xz
>archives.

Since installed.db is intended for use by cygwin tools that we support
it is not really "wrong" for it to use .bz2.  It is just odd.  However,
I think we should just the .tar.* extension entirely and fix cygcheck to
deal with that case.

FWIW, I think Yaakov noticed this problem a few weeks ago.

cgf

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

* Re: installed.db does not reflect the correct filename suffix
  2013-10-15 20:00       ` Christopher Faylor
@ 2013-10-15 20:08         ` Christopher Faylor
  2013-10-16  7:26         ` Corinna Vinschen
  1 sibling, 0 replies; 6+ messages in thread
From: Christopher Faylor @ 2013-10-15 20:08 UTC (permalink / raw)
  To: cygwin-apps

On Tue, Oct 15, 2013 at 04:00:04PM -0400, Christopher Faylor wrote:
>On Tue, Oct 15, 2013 at 06:03:16PM +0200, Corinna Vinschen wrote:
>>On Oct 15 17:53, Achim Gratz wrote:
>>> Corinna Vinschen writes:
>>> > Does anybody have an idea how to fix this?
>>> 
>>> Pragmatically the compression suffix could be dropped (just appending
>>> ".tar"), since setup.exe doesn't care what it is anyway.
>>
>>I was assuming that some people automatically scan installed.db for some
>>purposes, and for those people the current state is broken with .tar.xz
>>archives.
>
>Since installed.db is intended for use by cygwin tools that we support
>it is not really "wrong" for it to use .bz2.  It is just odd.  However,
>I think we should just the .tar.* extension entirely and fix cygcheck to
                     remove
>deal with that case.

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

* Re: installed.db does not reflect the correct filename suffix
  2013-10-15 20:00       ` Christopher Faylor
  2013-10-15 20:08         ` Christopher Faylor
@ 2013-10-16  7:26         ` Corinna Vinschen
  1 sibling, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2013-10-16  7:26 UTC (permalink / raw)
  To: cygwin-apps

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

On Oct 15 16:00, Christopher Faylor wrote:
> On Tue, Oct 15, 2013 at 06:03:16PM +0200, Corinna Vinschen wrote:
> >On Oct 15 17:53, Achim Gratz wrote:
> >> Corinna Vinschen writes:
> >> > Does anybody have an idea how to fix this?
> >> 
> >> Pragmatically the compression suffix could be dropped (just appending
> >> ".tar"), since setup.exe doesn't care what it is anyway.
> >
> >I was assuming that some people automatically scan installed.db for some
> >purposes, and for those people the current state is broken with .tar.xz
> >archives.
> 
> Since installed.db is intended for use by cygwin tools that we support
> it is not really "wrong" for it to use .bz2.  It is just odd.  However,
> I think we should just the .tar.* extension entirely and fix cygcheck to
> deal with that case.

Right.  We should then release 1.7.26 soon to get the new cygcheck
out of the door.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2013-10-16  7:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <2b1a16523f63ed60c93d0b9385979761.squirrel@webmail.xs4all.nl>
2013-10-15  9:36 ` installed.db does not reflect the correct filename suffix Corinna Vinschen
2013-10-15 15:53   ` Achim Gratz
2013-10-15 16:03     ` Corinna Vinschen
2013-10-15 20:00       ` Christopher Faylor
2013-10-15 20:08         ` Christopher Faylor
2013-10-16  7:26         ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).