]> git.saurik.com Git - apt.git/commitdiff
cleanup, thanks to donkult for his feedback
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 10 Jul 2012 11:19:54 +0000 (13:19 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 10 Jul 2012 11:19:54 +0000 (13:19 +0200)
test/integration/framework
test/integration/test-ubuntu-bug346386
test/interactive-helper/aptwebserver.cc

index bf46ae0c56eb397d0c68bc0195bf735c7a0b94dd..8f37d4a0337bd3c36989ab6a682f35640016a533 100644 (file)
@@ -687,14 +687,11 @@ signreleasefiles() {
        msgdone "info"
 }
 
-simulatebrokenwebserver() {
-       if ! test -x ${BUILDDIRECTORY}/aptwebserver; then
-                 msgdie 'Need the aptwebserver to simulate broken connections'
+changetowebserver() {
+        if [ -n "$1" ] && ! test -x ${BUILDDIRECTORY}/aptwebserver; then
+            msgdie 'Need the aptwebserver when passing arguments'
         fi
-        changetowebserver '--simulate-paywall'
-}
 
-changetowebserver() {
        if test -x ${BUILDDIRECTORY}/aptwebserver; then
                cd aptarchive
                LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/aptwebserver $@ 2> /dev/null > /dev/null &
index 57004f343f169b8da21db378612513c13e16fa90..a5f50285338aa18da77f28b8a39e0fe3a1c1e172 100755 (executable)
@@ -10,7 +10,7 @@ configarchitecture 'amd64'
 buildsimplenativepackage 'apt' 'all' '1.0' 'stable'
 
 setupaptarchive
-simulatebrokenwebserver
+changetowebserver --simulate-paywall
 
 rm -rf rootdir/var/lib/apt/lists
 aptget update 
index ebe04d2a35ccdec847b96fc851d33335f2cf26a2..8fbb9eab9791c0f32959239fe354905405993ec7 100644 (file)
@@ -154,7 +154,7 @@ int main(int argc, const char *argv[])
    };
 
    CommandLine CmdL(Args, _config);
-   if(pkgInitConfig(*_config) == false || CmdL.Parse(argc,argv) == false) {
+   if(CmdL.Parse(argc,argv) == false) {
       _error->DumpErrors();
       exit(1);
    }