Toon posts:

slackware update autopkg fouten!

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hi people,
Ik probeer al een tijdje mijn slackware 8.0 bak te upgraden, maar auopkg geeft fouten als ik bv naar de slackware current wil upgrade....
zoals in dit topic staat vermeld: Slackware 8.1 met autopkg Updaten ?
Ik heb al verscheidene topics gelezen voor het upgrade van slackware, maar ik krijg het maar niet voor elkaar.
Ook heb ik de autopkg.conf niet in me /etc staan. Hij is gewoon niet aanwezig.

Ik krijg als ik autopkg --upgrade -a run de volgende errors:

root@darkstar:/etc# autopkg --upgrade -a
Bareword "DIR" not allowed while "strict subs" in use at /usr/local/bin/autopkg line 1321.
Bareword "SYMLINK" not allowed while "strict subs" in use at /usr/local/bin/autopkg line 1321.
Bareword "DIR" not allowed while "strict subs" in use at /usr/local/bin/autopkg line 1324.
BEGIN not safe after errors--compilation aborted at /usr/local/bin/autopkg line 1397.

vi /usr/local/bin/autopkg
vanaf line 1321
1321: $ref->{size} = 0 if $ref->{type} == DIR or $ref->{type} == SYMLINK;

# Make sure directories have their trailing /, as installpkg requires.
$ref->{name} .= '/' if $ref->{type} == DIR;

if ($ownership = getownership($file, $ref)) {
($ref->{uid}, $ref->{gid}, $ref->{uname}, $ref->{gname}) =
@$ownership;
}

push (@{$tarball->{'_data'}}, $ref);
} else {
choke("Couldn't add file $file: " . Archive::Tar::error());
}
}

sub getownership {
my ($file, $ref) = @_;


Weet iemand wat ik fout doe? Of hoe ik het kan fixen.....

[ Voor 26% gewijzigd door Verwijderd op 15-01-2004 15:06 ]