Browse Source

fix backward compat stuff and rpm --fetch

master
parent
commit
c3fd9d79ab
  1. 4
      openpkg/openpkg.spec
  2. 4
      openpkg/rpmmacros
  3. 6
      openpkg/rpmx.pl

4
openpkg/openpkg.spec

@ -39,8 +39,8 @@
# o any cc(1)
# the package version and release
%define V_openpkg 20020416
%define R_openpkg 20020416
%define V_openpkg 20020515
%define R_openpkg 20020515
# the used software versions
%define V_rpm 4.0.2

4
openpkg/rpmmacros

@ -57,8 +57,8 @@
# backward compatibility (openpkg < 20020204)
%l_fsusr %{l_musr}
%l_fsgrp %{l_mgrp}
%l_fsuid %{l_muid}
%l_fsgid %{l_mgid}
%l_npuid %{l_nuid}
%l_npgid %{l_ngid}
# the two root directories
%l_root_install @l_prefix@

6
openpkg/rpmx.pl

@ -537,11 +537,11 @@ sub op_fetch {
if (-f "$local_srcdir/$remote_srcfile" or -f "$local_specdir/$remote_srcfile") {
# source already on local filesystem
my $size;
if (-f "$srcdir/$srcfile") {
$size = (stat("$srcdir/$srcfile"))[7];
if (-f "$local_srcdir/$remote_srcfile") {
$size = (stat("$local_srcdir/$remote_srcfile"))[7];
}
else {
$size = (stat("$specdir/$srcfile"))[7];
$size = (stat("$local_specdir/$remote_srcfile"))[7];
}
if ($size > 1024*1024) {
$size = sprintf("%.1fMB", $size / (1024*1024));

Loading…
Cancel
Save