[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#843401: apt-file: Use of uninitialized value



On Sun, 6 Nov 2016, Niels Thykier wrote:
>
> Hi Cristian,

Niels.

> Thanks for the report.

Thanks for looking into this.

> Unfortunately, I cannot reproduce it at all locally.  I suspect it may
> be due to differences in our repos or in our systems.

Yes, I suspect that too.
I'm using apt sources at http://www.deb-multimedia.org.
I believe both bugs I filed on apt-file have the same source.  See
bellow.

> Could you please provide the full output of:
>
> > $ apt-file -v --filter-suites sid list apt-file
> > $ apt-get indextargets --format '$(IDENTIFIER) $(ARCHITECTURE) $(ORIGIN) $(CODENAME),$(SUITE) $(FILENAME)'

Using the later hint, I found out the possible cause of the problem.
The files /var/lib/apt/lists/*_InRelease the header:

	Origin: Debian
	        ^^^^^^
to just _one_ word.  deb-multimedia uses 3 words:

	Origin: Unofficial Multimedia Packages
	        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

and the parser does not make the distinction.  One may argue
deb-multimedia is at fault here, and I would agree.  Still if the
indextargets format specifier would use another field separator (say
'|' instead of ' ') parsing would work much better.  Say:

'$(IDENTIFIER)|$(ARCHITECTURE)|$(ORIGIN)|$(CODENAME),$(SUITE)|$(FILENAME)'

What do you think?


Cheers,

-- 
Cristian


Reply to: