[Pkg-net-snmp-commits] r297 - branches/net-snmp54/debian branches/net-snmp54-dev/debian trunk/debian

Jochen Friedrich jochen at alioth.debian.org
Tue Nov 10 09:57:48 UTC 2009


Author: jochen
Date: 2009-11-10 09:57:48 +0000 (Tue, 10 Nov 2009)
New Revision: 297

Modified:
   branches/net-snmp54-dev/debian/libsnmp-base.postinst
   branches/net-snmp54/debian/libsnmp-base.postinst
   trunk/debian/libsnmp-base.postinst
Log:
Only download MIB files automatically if they aren't already there.


Modified: branches/net-snmp54/debian/libsnmp-base.postinst
===================================================================
--- branches/net-snmp54/debian/libsnmp-base.postinst	2009-11-06 18:19:00 UTC (rev 296)
+++ branches/net-snmp54/debian/libsnmp-base.postinst	2009-11-10 09:57:48 UTC (rev 297)
@@ -6,7 +6,7 @@
 db_version 2.0
 
 db_get libsnmp-base/download_mibs
-if [ "$RET" = "true" ]; then
+if [ "$RET" = "true" ] && [ ! -d /usr/share/mibs/ietf -o ! -d /usr/share/mibs/iana ]; then
 	cd /usr/share/mibs; make -f Makefile.mib
 fi
 

Modified: branches/net-snmp54-dev/debian/libsnmp-base.postinst
===================================================================
--- branches/net-snmp54-dev/debian/libsnmp-base.postinst	2009-11-06 18:19:00 UTC (rev 296)
+++ branches/net-snmp54-dev/debian/libsnmp-base.postinst	2009-11-10 09:57:48 UTC (rev 297)
@@ -6,7 +6,7 @@
 db_version 2.0
 
 db_get libsnmp-base/download_mibs
-if [ "$RET" = "true" ]; then
+if [ "$RET" = "true" ] && [ ! -d /usr/share/mibs/ietf -o ! -d /usr/share/mibs/iana ]; then
 	cd /usr/share/mibs; make -f Makefile.mib
 fi
 

Modified: trunk/debian/libsnmp-base.postinst
===================================================================
--- trunk/debian/libsnmp-base.postinst	2009-11-06 18:19:00 UTC (rev 296)
+++ trunk/debian/libsnmp-base.postinst	2009-11-10 09:57:48 UTC (rev 297)
@@ -6,7 +6,7 @@
 db_version 2.0
 
 db_get libsnmp-base/download_mibs
-if [ "$RET" = "true" ]; then
+if [ "$RET" = "true" ] && [ ! -d /usr/share/mibs/ietf -o ! -d /usr/share/mibs/iana ]; then
 	cd /usr/share/mibs; make -f Makefile.mib
 fi
 




More information about the Pkg-net-snmp-commits mailing list