Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings on repositories without MD5sums #66

Closed
yaunj opened this issue Dec 16, 2016 · 6 comments
Closed

Warnings on repositories without MD5sums #66

yaunj opened this issue Dec 16, 2016 · 6 comments
Labels

Comments

@yaunj
Copy link

yaunj commented Dec 16, 2016

I'm using apt-mirror on Ubuntu 16.04, and some of the repositories I'm mirroring does not contain MD5sums in the Packages files. This results in warnings like this:

Global symbol "$package" requires explicit package name (did you forget to declare "my $package"?) at /usr/bin/apt-mirror line 787

Line 787 in Ubuntu 16.04 corresponds to line 798 in version 0.5.2.

print FILES_MD5 $lines{"MD5sum:"} . " " . remove_double_slashes( $path . "/" . $lines{"Filename:"} ) . "\n";

Appending if defined $lines{"MD5sum:"} to the line silences the error. However, you probably shouldn't silence all these possibly missing checksums. Maybe you could add some logic to warn if there isn't at least one checksum in the file?

@BrandonCantrell
Copy link

BrandonCantrell commented Jan 24, 2017

Would seeing messages like this:

Use of uninitialized value $lines{"MD5sum:"} in concatenation (.) or string at /usr/bin/apt-mirror line 787

Be related to your issue? Did you see any of the above when troubleshooting?

Thanks

@yaunj
Copy link
Author

yaunj commented Jan 25, 2017

That seems like it could be related, yes. Don't recall seeing that warning, and I don't have logs handy at the moment, but I guess it could depend on the version of apt-mirror or Perl?

In my case, the repository I was mirroring had SHA sums, so I appended the if check above to line 787 and hope for a fix before next update.

@Raboo
Copy link

Raboo commented Mar 20, 2017

If anybody need a apt repo without MD5 to test.
deb-amd64 https://packages.chef.io/stable-apt xenial main

@bdrung bdrung added the bug label Apr 13, 2017
@bdrung bdrung closed this as completed in c16ed08 May 29, 2017
@vveider
Copy link

vveider commented Mar 25, 2020

@bdrung,

I still see these messages for Ubuntu 18.04 at least.
Should I file new bug or we can reopen this one?

Use of uninitialized value $lines{"MD5sum:"} in concatenation (.) or string at /usr/bin/apt-mirror line 787, <STREAM> line 6.

Version is 0.5.1-1ubuntu1

@Raboo
Copy link

Raboo commented Mar 26, 2020

The README says "New maintainer(s) wanted". So unless you are willing to become the maintainer, your issue is not going to be solved.

@vveider
Copy link

vveider commented Mar 26, 2020

Oh, I see. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants