summaryrefslogtreecommitdiffstats
path: root/RPM4/bin/rpm_produced
diff options
context:
space:
mode:
authornanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2005-10-08 17:30:58 +0000
committernanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2005-10-08 17:30:58 +0000
commit297cd66d7ba0ab41beb08897af99b963d2cb18d9 (patch)
treec46399c6b6f53c6230c03571736ece0563a71021 /RPM4/bin/rpm_produced
parentac5e12a473b51adcb2d0bcce40fe2d7a34d506a2 (diff)
downloadperl-RPM4-297cd66d7ba0ab41beb08897af99b963d2cb18d9.tar
perl-RPM4-297cd66d7ba0ab41beb08897af99b963d2cb18d9.tar.gz
perl-RPM4-297cd66d7ba0ab41beb08897af99b963d2cb18d9.tar.bz2
perl-RPM4-297cd66d7ba0ab41beb08897af99b963d2cb18d9.tar.xz
perl-RPM4-297cd66d7ba0ab41beb08897af99b963d2cb18d9.zip
- code was still using Hdlist :\
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@41 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4/bin/rpm_produced')
-rwxr-xr-xRPM4/bin/rpm_produced14
1 files changed, 7 insertions, 7 deletions
diff --git a/RPM4/bin/rpm_produced b/RPM4/bin/rpm_produced
index e9fe67b..db593dc 100755
--- a/RPM4/bin/rpm_produced
+++ b/RPM4/bin/rpm_produced
@@ -39,13 +39,13 @@ Options:
--no-src do not show the src.rpm
";
-Hdlist::add_macro("_sourcedir $tmp");
-Hdlist::add_macro("_specdir $tmp");
+RPM4::add_macro("_sourcedir $tmp");
+RPM4::add_macro("_specdir $tmp");
sub set_config {
- Hdlist::readconfig();
+ RPM4::readconfig();
foreach (@macros) {
- Hdlist::add_macro($_);
+ RPM4::add_macro($_);
}
}
@@ -60,8 +60,8 @@ sub specquery {
foreach my $file (@ARGV) {
set_config();
$file =~ m/\.src\.rpm$/ and do {
- if(my ($specfile) = Hdlist::installsrpm($file)) {
- if (my $spec = Hdlist::specnew($specfile, undef, undef, undef, 1, 1)) {
+ if(my ($specfile) = RPM4::installsrpm($file)) {
+ if (my $spec = RPM4::specnew($specfile, undef, undef, undef, 1, 1)) {
specquery($spec);
$spec->build([qw(RMSOURCE RMSPEC)]);
}
@@ -69,7 +69,7 @@ foreach my $file (@ARGV) {
next;
};
$file =~ m/\.spec$/ and do {
- if (my $spec = Hdlist::specnew($file, undef, undef, undef, 1, 1)) {
+ if (my $spec = RPM4::specnew($file, undef, undef, undef, 1, 1)) {
specquery($spec);
}
next;