[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#47594: please add option "--unpack", patch included



Package: apt
Version: 0.3.14
Severity: wishlist

I need to download and unpack packages using apt for my demo-fs package.
I implemented that with a few changes to the source (patch below). I hope
I added the support at the right place.

May the Source be with you.
			Goswin

-- System Information
Debian Release: potato
Architecture: i386
Kernel: Linux mrvnbook 2.2.12 #8 Thu Sep 30 17:00:39 CEST 1999 i686

Versions of packages apt depends on:
ii  libc6                     2.1.2-5        GNU C Library: Shared libraries an
ii  libstdc++2.10             1:2.95.2-0pre2 The GNU stdc++ library           

----------------------------[ apt-0.3.13.mrvn.diff ]---------------------------

diff -Nurd apt-0.3.13/apt-pkg/packagemanager.cc apt-0.3.13.mrvn/apt-pkg/packagem
anager.cc
--- apt-0.3.13/apt-pkg/packagemanager.cc        Fri Sep  3 18:03:47 1999
+++ apt-0.3.13.mrvn/apt-pkg/packagemanager.cc   Fri Oct 15 16:46:39 1999
@@ -563,6 +563,11 @@
       DoneSomething = true;
    }
    
+   // Shall we perform configuration?
+   if (_config->FindB("APT::Get::Unpack",false) == true) {
+          return Completed;
+   }
+   
    // Final run through the configure phase
    if (ConfigureAll() == false)
       return Failed;
diff -Nurd apt-0.3.13/cmdline/apt-get.cc apt-0.3.13.mrvn/cmdline/apt-get.cc
--- apt-0.3.13/cmdline/apt-get.cc       Mon Sep 20 03:53:33 1999
+++ apt-0.3.13.mrvn/cmdline/apt-get.cc  Fri Oct 15 16:37:12 1999
@@ -1525,6 +1525,7 @@
       {'f',"fix-broken","APT::Get::Fix-Broken",0},
       {'u',"show-upgraded","APT::Get::Show-Upgraded",0},
       {'m',"ignore-missing","APT::Get::Fix-Missing",0},
+      {0,"unpack","APT::Get::Unpack",0},
       {0,"no-download","APT::Get::No-Download",0},
       {0,"fix-missing","APT::Get::Fix-Missing",0},
       {0,"ignore-hold","APT::Ingore-Hold",0},      
diff -Nurd apt-0.3.13/debian/changelog apt-0.3.13.mrvn/debian/changelog
--- apt-0.3.13/debian/changelog Mon Sep 20 03:54:34 1999
+++ apt-0.3.13.mrvn/debian/changelog    Fri Oct 15 16:59:47 1999
@@ -1,3 +1,9 @@
+apt (0.3.14) unstable; urgency=low
+  
+  * Added APT::Get::Unpack option implementing "dpkg --unpack -i".
+
+ -- Goswin Brederlow <goswin.brederlow@student.uni-tuebingen.de>  Fri, 15 Oct 1
999 17:00:38 +0200
+
 apt (0.3.13) unstable; urgency=low
   
   * Fix timestamp miss in FTP. Closes: #44363
 


Reply to: