Remove typos and stray debugging fprintf's.
authorjbj <devnull@localhost>
Fri, 11 May 2001 16:45:06 +0000 (16:45 +0000)
committerjbj <devnull@localhost>
Fri, 11 May 2001 16:45:06 +0000 (16:45 +0000)
CVS patchset: 4770
CVS date: 2001/05/11 16:45:06

rpm.spec.in
rpmdb/db3.c

index de9137b..5e547a4 100644 (file)
@@ -175,12 +175,12 @@ if [ -f /var/lib/rpm/packages.rpm ]; then
 elif [ -f /var/lib/rpm/Packages ]; then
     # undo db1 configuration
     rm -f /etc/rpm/macros.db1
-   /bin/chown @@RPMUSER@@.@@RPMGROUP@@ /var/lib/rpm/[A-Z]*
+   /bin/chown @RPMUSER@.@RPMGROUP@ /var/lib/rpm/[A-Z]*
 else
     # initialize db3 database
     rm -f /etc/rpm/macros.db1
     /bin/rpm --initdb
-   /bin/chown @@RPMUSER@@.@@RPMGROUP@@ /var/lib/rpm/[A-Z]*
+   /bin/chown @RPMUSER@.@RPMGROUP@ /var/lib/rpm/[A-Z]*
 fi
 
 %ifos linux
@@ -207,67 +207,67 @@ fi
 %files
 %defattr(-,root,root)
 %doc RPM-PGP-KEY RPM-GPG-KEY CHANGES GROUPS doc/manual/[a-z]*
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) /bin/rpm
+%attr(0755, @RPMUSER@, @RPMGROUP@)     /bin/rpm
 %dir                   /etc/rpm
 %config(missingok)     /etc/rpm/macros.db1
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/bin/rpm2cpio
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/bin/gendiff
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/bin/rpmdb
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/bin/rpm[eiukqv]
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/bin/rpmsign
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/bin/rpmquery
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/bin/rpmverify
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/bin/rpm2cpio
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/bin/gendiff
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/bin/rpmdb
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/bin/rpm[eiukqv]
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/bin/rpmsign
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/bin/rpmquery
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/bin/rpmverify
 
 %{__prefix}/lib/librpm.so.*
 %{__prefix}/lib/librpmdb.so.*
 %{__prefix}/lib/librpmio.so.*
 %{__prefix}/lib/librpmbuild.so.*
 
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/config.guess
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/config.sub
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/convertrpmrc.sh
-%attr(0644, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/macros
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/mkinstalldirs
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/rpm[deiukqv]
-%attr(0644, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/rpmpopt*
-%attr(0644, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/rpmrc
-
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %dir /var/lib/rpm
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Basenames
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Conflictname
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/__db.001
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Dirnames
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Group
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Installtid
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Name
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Packages
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Providename
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Provideversion
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Removetid
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Requirename
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Requireversion
-#%attr(0755, @@RPMUSER@@, @@RPMGROUP@@)        %ghost /var/lib/rpm/Triggername
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/config.guess
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/config.sub
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/convertrpmrc.sh
+%attr(0644, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/macros
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/mkinstalldirs
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/rpm[deiukqv]
+%attr(0644, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/rpmpopt*
+%attr(0644, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/rpmrc
+
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %dir /var/lib/rpm
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Basenames
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Conflictname
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/__db.001
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Dirnames
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Group
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Installtid
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Name
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Packages
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Providename
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Provideversion
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Removetid
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Requirename
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Requireversion
+#%attr(0755, @RPMUSER@, @RPMGROUP@)    %ghost /var/lib/rpm/Triggername
 
 %ifarch i386 i486 i586 i686 athlon
-%attr(-, @@RPMUSER@@, @@RPMGROUP@@)    %{__prefix}/lib/rpm/i[3456]86*
+%attr(-, @RPMUSER@, @RPMGROUP@)        %{__prefix}/lib/rpm/i[3456]86*
 %endif
 %ifarch alpha
-%attr(-, @@RPMUSER@@, @@RPMGROUP@@)    %{__prefix}/lib/rpm/alpha*
+%attr(-, @RPMUSER@, @RPMGROUP@)        %{__prefix}/lib/rpm/alpha*
 %endif
 %ifarch sparc sparc64
-%attr(-, @@RPMUSER@@, @@RPMGROUP@@)    %{__prefix}/lib/rpm/sparc*
+%attr(-, @RPMUSER@, @RPMGROUP@)        %{__prefix}/lib/rpm/sparc*
 %endif
 %ifarch ia64
-%attr(-, @@RPMUSER@@, @@RPMGROUP@@)    %{__prefix}/lib/rpm/ia64*
+%attr(-, @RPMUSER@, @RPMGROUP@)        %{__prefix}/lib/rpm/ia64*
 %endif
 %ifarch powerpc ppc
-%attr(-, @@RPMUSER@@, @@RPMGROUP@@)    %{__prefix}/lib/rpm/ppc*
+%attr(-, @RPMUSER@, @RPMGROUP@)        %{__prefix}/lib/rpm/ppc*
 %endif
 %ifarch s390 s390x
-%attr(-, @@RPMUSER@@, @@RPMGROUP@@)    %{__prefix}/lib/rpm/s390*
+%attr(-, @RPMUSER@, @RPMGROUP@)        %{__prefix}/lib/rpm/s390*
 %endif
 %ifarch armv3l armv4l
-%attr(-, @@RPMUSER@@, @@RPMGROUP@@)    %{__prefix}/lib/rpm/armv[34][lb]*
+%attr(-, @RPMUSER@, @RPMGROUP@)        %{__prefix}/lib/rpm/armv[34][lb]*
 %endif
 
 %lang(cs)      %{__prefix}/*/locale/cs/LC_MESSAGES/rpm.mo
@@ -303,31 +303,31 @@ fi
 %dir %{__prefix}/src/redhat/SRPMS
 %dir %{__prefix}/src/redhat/RPMS
 %{__prefix}/src/redhat/RPMS/*
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/bin/rpmbuild
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/brp-*
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/check-prereqs
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/cpanflute
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/find-lang.sh
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/find-prov.pl
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/find-provides
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/find-provides.perl
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/find-req.pl
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/find-requires
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/find-requires.perl
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/get_magic.pl
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/getpo.sh
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/http.req
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/javadeps
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/magic.prov
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/magic.req
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/perl.prov
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/perl.req
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/rpm[bt]
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/rpmdiff
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/rpmdiff.cgi
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/u_pkg.sh
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/vpkg-provides.sh
-%attr(0755, @@RPMUSER@@, @@RPMGROUP@@) %{__prefix}/lib/rpm/vpkg-provides2.sh
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/bin/rpmbuild
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/brp-*
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/check-prereqs
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/cpanflute
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/find-lang.sh
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/find-prov.pl
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/find-provides
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/find-provides.perl
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/find-req.pl
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/find-requires
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/find-requires.perl
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/get_magic.pl
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/getpo.sh
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/http.req
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/javadeps
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/magic.prov
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/magic.req
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/perl.prov
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/perl.req
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/rpm[bt]
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/rpmdiff
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/rpmdiff.cgi
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/u_pkg.sh
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/vpkg-provides.sh
+%attr(0755, @RPMUSER@, @RPMGROUP@)     %{__prefix}/lib/rpm/vpkg-provides2.sh
 
 %if %{with_python_subpackage}
 %files python
index 3a0e585..6e65ba0 100644 (file)
@@ -394,7 +394,6 @@ static inline int db3c_open(dbiIndex dbi, /*@out@*/ DBC ** dbcp, int dbiflags)
     if ((dbiflags & DBI_WRITECURSOR) &&
        (dbi->dbi_eflags & DB_INIT_CDB) && !(dbi->dbi_oflags & DB_RDONLY))
     {
-fprintf(stderr, "D: *** WRITECURSOR\n");
        flags = DB_WRITECURSOR;
     } else
        flags = 0;
@@ -916,7 +915,6 @@ static int db3open(/*@keep@*/ rpmdb rpmdb, int rpmtag, dbiIndex * dbip)
 
            if (rc == 0 && dbi->dbi_use_dbenv && (dbi->dbi_eflags & DB_INIT_CDB) && dbi->dbi_get_rmw_cursor) {
                DBC * dbcursor = NULL;
-fprintf(stderr, "D: *** rmw WRITECURSOR\n");
                xx = db->cursor(db, txnid, &dbcursor,
                        ((oflags & DB_RDONLY) ? 0 : DB_WRITECURSOR));
                xx = cvtdberr(dbi, "db->cursor", xx, _debug);