Skip to content

Commit

Permalink
set uid on build
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed Jan 21, 2013
1 parent d2bdda3 commit f8b8a83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin.js
Expand Up @@ -13,7 +13,6 @@ exports.for = function(API, plugin) {

if (!/^https?:\/\//.test(locator.descriptor.pointer)) {

console.log("locator", locator);
throw new Error("TODO: Resolve pinf-style uris (github.com/sourcemint/loader/~0.1.0).");

}
Expand Down Expand Up @@ -364,7 +363,7 @@ throw new Error("TODO: Resolve pinf-style uris (github.com/sourcemint/loader/~0.
delete descriptor._from;

// Set some required properties.
descriptor.uid = node.summary.repositoryUri || node.summary.homepageUri || (node.summary.pm.install + "-" + node.summary.name);
descriptor.uid = node.summary.uid;
if (node.summary.rev) {
descriptor.rev = node.summary.rev;
}
Expand Down

0 comments on commit f8b8a83

Please sign in to comment.