Coder Social home page Coder Social logo

Comments (9)

timsutton avatar timsutton commented on June 13, 2024

RECIPE_DIR should be getting set and be substitutable like any other. It's working for me here with today's code from master.

You don't perhaps have RECIPE_DIR set manually (to /private/tmp) in your prefs?

~/git/github/autopkg/Code/autopkg run -vvv VLC.pkg
Processing VLC.pkg...
{'AUTOPKG_VERSION': u'0.2.7',
 u'MUNKI_REPO': u'/Volumes/munki_repo',
 u'NAME': u'VLC',
 'PARENT_RECIPES': [u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC/VLC.download.recipe'],
 'RECIPE_CACHE_DIR': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC',
 'RECIPE_DIR': u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC',
 u'RECIPE_OVERRIDE_DIRS': [u'/Users/tsutton/git/cda-autopkg-overrides'],
 'RECIPE_PATH': u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC/VLC.pkg.recipe',
 u'RECIPE_REPOS': {u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes': {
    URL = "https://github.com/autopkg/keeleysam-recipes";
},
                   u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {
    URL = "https://github.com/autopkg/recipes";
},
                   u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes': {
    URL = "https://github.com/autopkg/timsutton-recipes";
},
                   u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-recipes': {
    URL = "https://github.com/hjuutilainen/autopkg-recipes";
},
                   u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.jessepeterson.autopkg-recipes': {
    URL = "https://github.com/jessepeterson/autopkg-recipes";
}},
 u'RECIPE_SEARCH_DIRS': [u'.',
                         u'~/Library/AutoPkg/Recipes',
                         u'/Library/AutoPkg/Recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.jessepeterson.autopkg-recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes'],
 'verbose': 3}
SparkleUpdateInfoProvider
{'Input': {'appcast_url': u'http://update.videolan.org/vlc/sparkle/vlc-intel64.xml'}}
SparkleUpdateInfoProvider: Version retrieved from appcast: 2.1.2
SparkleUpdateInfoProvider: Found URL http://get.videolan.org/vlc/2.1.2/macosx/vlc-2.1.2.dmg
{'Output': {'additional_pkginfo': {},
            'url': 'http://get.videolan.org/vlc/2.1.2/macosx/vlc-2.1.2.dmg'}}
URLDownloader
{'Input': {'filename': u'VLC.dmg',
           'url': 'http://get.videolan.org/vlc/2.1.2/macosx/vlc-2.1.2.dmg'}}
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/downloads/VLC.dmg
{'Output': {'download_changed': False,
            'etag': '',
            'last_modified': '',
            'pathname': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/downloads/VLC.dmg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
AppDmgVersioner
{'Input': {'dmg_path': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/downloads/VLC.dmg'}}
AppDmgVersioner: Mounted disk image /Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/downloads/VLC.dmg
AppDmgVersioner: BundleID: org.videolan.vlc
AppDmgVersioner: Version: 2.1.2
{'Output': {'app_name': u'VLC.app',
            'bundleid': u'org.videolan.vlc',
            'version': u'2.1.2'}}
PkgRootCreator
{'Input': {'pkgdirs': {
    Applications = 0775;
},
           'pkgroot': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC'}}
PkgRootCreator: Created /Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC
PkgRootCreator: Creating Applications
PkgRootCreator: Created /Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC/Applications
{'Output': {}}
Copier
{'Input': {'destination_path': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC/Applications/VLC.app',
           'source_path': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/downloads/VLC.dmg/VLC.app'}}
Copier: Mounted disk image /Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/downloads/VLC.dmg
Copier: Copied /private/tmp/dmg.WL2vss/VLC.app to /Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC/Applications/VLC.app
{'Output': {}}
PkgInfoCreator
{'Input': {'infofile': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/PackageInfo',
           'pkgroot': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC',
           'pkgtype': u'flat',
           'template_path': u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC/PackageInfoTemplate',
           'version': u'2.1.2'}}
{'Output': {}}
PkgCreator
{'Input': {'pkg_request': {
    chown =     (
                {
            group = admin;
            path = Applications;
            user = root;
        }
    );
    id = "org.videolan.vlc.pkg";
    options = "purge_ds_store";
    pkgdir = "/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC";
    resources = "/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC/Resources";
}}}
PkgCreator: Connecting
PkgCreator: Sending packaging request
PkgCreator: Disconnecting
{'Output': {'pkg_path': '/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC-2.1.2.pkg'}}
{'AUTOPKG_VERSION': u'0.2.7',
 u'MUNKI_REPO': u'/Volumes/munki_repo',
 u'NAME': u'VLC',
 'PARENT_RECIPES': [u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC/VLC.download.recipe'],
 'RECIPE_CACHE_DIR': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC',
 'RECIPE_DIR': u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC',
 u'RECIPE_OVERRIDE_DIRS': [u'/Users/tsutton/git/cda-autopkg-overrides'],
 'RECIPE_PATH': u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC/VLC.pkg.recipe',
 u'RECIPE_REPOS': {u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes': {
    URL = "https://github.com/autopkg/keeleysam-recipes";
},
                   u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {
    URL = "https://github.com/autopkg/recipes";
},
                   u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes': {
    URL = "https://github.com/autopkg/timsutton-recipes";
},
                   u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-recipes': {
    URL = "https://github.com/hjuutilainen/autopkg-recipes";
},
                   u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.jessepeterson.autopkg-recipes': {
    URL = "https://github.com/jessepeterson/autopkg-recipes";
}},
 u'RECIPE_SEARCH_DIRS': [u'.',
                         u'~/Library/AutoPkg/Recipes',
                         u'/Library/AutoPkg/Recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.jessepeterson.autopkg-recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes',
                         u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes'],
 'additional_pkginfo': {},
 'app_name': u'VLC.app',
 u'appcast_url': u'http://update.videolan.org/vlc/sparkle/vlc-intel64.xml',
 'bundleid': u'org.videolan.vlc',
 u'destination_path': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC/Applications/VLC.app',
 u'dmg_path': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/downloads/VLC.dmg',
 'download_changed': False,
 'etag': '',
 u'filename': u'VLC.dmg',
 u'infofile': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/PackageInfo',
 'last_modified': '',
 'pathname': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/downloads/VLC.dmg',
 'pkg_path': '/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC-2.1.2.pkg',
 u'pkg_request': {
    chown =     (
                {
            group = admin;
            path = Applications;
            user = root;
        }
    );
    id = "org.videolan.vlc.pkg";
    infofile = "/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/PackageInfo";
    options = "purge_ds_store";
    pkgdir = "/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC";
    pkgname = "VLC-2.1.2";
    pkgroot = "/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC";
    pkgtype = flat;
    resources = "/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC/Resources";
    scripts = "";
    version = "2.1.2";
},
 u'pkgdirs': {
    Applications = 0775;
},
 u'pkgname': u'VLC-2.1.2',
 u'pkgroot': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC',
 u'pkgtype': u'flat',
 u'source_path': u'/Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/downloads/VLC.dmg/VLC.app',
 u'template_path': u'/Users/tsutton/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/VLC/PackageInfoTemplate',
 'url': 'http://get.videolan.org/vlc/2.1.2/macosx/vlc-2.1.2.dmg',
 'verbose': 3,
 'version': u'2.1.2'}
Receipt written to /Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/receipts/VLC-receipt-20140107-104726.plist

The following packages were built:
    Identifier               Version          Pkg path
    ----------               -------          --------
    org.videolan.vlc.pkg     2.1.2            /Users/tsutton/Library/AutoPkg/Cache/com.github.autopkg.pkg.VLC/VLC-2.1.2.pkg

from recipes.

arubdesu avatar arubdesu commented on June 13, 2024

Nope, so this is a head-scratcher. @golbiga did experience the same symptom... https://gist.github.com/golbiga/8274348

$defaults read com.github.autopkg { "API_PASSWORD" = apiPassword; "API_USERNAME" = apiUser; "JSS_REPO" = "/Volumes/JSS_Dist_Point/Packages"; "JSS_URL" = "https://my.jss.test:8443"; "MUNKI_REPO" = "/Users/Shared/repo"; "RECIPE_REPOS" = { "/Users/318admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes" = { URL = "http://github.com/autopkg/recipes.git"; }; }; "RECIPE_SEARCH_DIRS" = ( ".", "~/Library/AutoPkg/Recipes", "/Library/AutoPkg/Recipes", "/Users/318admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes" ); }

from recipes.

timsutton avatar timsutton commented on June 13, 2024

Ok. If the same thing happens with VLC.pkg, can you paste full -vvv output?

from recipes.

golbiga avatar golbiga commented on June 13, 2024

The same does not happen when I do just the VLC.pkg.

from recipes.

gregneagle avatar gregneagle commented on June 13, 2024

So when does it happen? Confused now.

On Jan 7, 2014, at 11:52 AM, Allen Golbig [email protected] wrote:

The same does not happen when I do just the VLC.pkg.

β€”
Reply to this email directly or view it on GitHub.

from recipes.

arubdesu avatar arubdesu commented on June 13, 2024

We had been using my jss.recipes. But, with the newest autopkg release this is totally working for me again now... so maybe ok to close?

from recipes.

golbiga avatar golbiga commented on June 13, 2024

It's still failing for me, even when running the latest release 0.2.7. My gist with an output of a failed and successful run when removing %RECIPE_DIR% from PackageInfoTemplate is here, https://gist.github.com/golbiga/8306088.

from recipes.

timsutton avatar timsutton commented on June 13, 2024

Now it makes sense: the VLC.jss recipe doesn't have a PackageInfoTemplate file.

The original VLC recipes work because %RECIPE_DIR%/PackageInfoTemplate exists, but it doesn't in the case of the VLC.jss recipe. AutoPkg won't magically merge the RECIPE_DIRs of child and parent recipes.

from recipes.

golbiga avatar golbiga commented on June 13, 2024

Copying the the PackageInfoTemplate into the jssRecipes Repo solved the issue. Thanks for the assistance!

from recipes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.